I'm curious as to what some (or most?) Skim users use the RTF or RTFD capabilities of Skim for? Nothing against RTF, its a file format that has been around a long time. What do people do with RTF / RTFD particularly with regard to annotations / notes exported out of Skim?
Hydro On Fri, Dec 26, 2008 at 7:49 AM, Christiaan Hofman <[email protected]>wrote: > For the next release I've added support for raw RTF data, which the > clipboard does accept. So something like > tell document 1 of app "Skim" > set the clipboard to (get RTF for note 1) > end tell > > should work. If you want both the text and the RTF (which doesn't happen > automatically), you can do something like: > tell document 1 of app "Skim" > set the clipboard to {RTF:get RTF for note 1, text:get text of note 1 > as text} > end tell > > BTW, if you put a reference on the clipboard using AppleScript, that is > actually added as a reference, not the evaluated data. That's also why I > inserted an extra "get" command in my second sample above. > > Christiaan > > > On Thu, Dec 25, 2008 at 12:04 AM, Christiaan Hofman <[email protected]>wrote: > >> 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 > >
------------------------------------------------------------------------------
_______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
