I don't think this is possible. AppleScript support for rich text is  
really bad, because there does not exist a built-in type for rich  
text. So when it's evaluated or assigned to a variable it will be  
coerced to plain text. To add insult to injury, the "set the  
clipboard" command provided by Apple cannot handle object specifiers  
(references), so there's really no way to put rich text on the  
clipboard using AppleScript. The only thing I can advice is to file a  
bug report with Apple (I will) and hope that in the next OS version  
things will actually work (though chances are close to zero, perhaps  
10.7).

Christiaan

On 24 Dec 2008, at 10:50 PM, Steven Audette wrote:

> After reading the AppleScript Skim wiki page 
> (http://skim-app.sourceforge.net/wiki/index.php/AppleScript
> ), I don't see any way to access the notes as rich text.
> The AppleScript dictionary says that the text of a note is "rich  
> text".
>
> I have tried:
> tell document 1 of application "Skim"
>       set foo to {rich text of note 1}
>       set the clipboard to foo
> end tell
>
> and:
> tell document 1 of application "Skim"
>       set foo to {ref rich text of note 1}
>       set the clipboard to foo as rich text
> end tell
>
> but these don't compile.  This compiles, but doesn't put anything in
> the clipboard:
> tell document 1 of application "Skim"
>       set foo to {ref rich text of note 1}
>       set the clipboard to foo
> end tell
>
> Any ideas?
>
> Thanks,
> Steve


------------------------------------------------------------------------------
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to