On Jun 19, 2010, at 7:44 AM, has wrote: > So I would suggest taking it up with the Skim authors, as it's probably a bug > in their scripting support.
As a follow-up, Christiaan Hofmann offered this: On Jun 19, 2010, at 9:00 AM, Christiaan Hofman wrote: > This is a very old and very annoying AppleScript bug in its validation of > statements involving properties. Generally, when you get an error like this, > you should insert an extra "get" command (which should be implicit, but it > isn't) as in 'get text for (get selection of note 1 of document 1)'. So in Applescript, the following works: > tell application "Skim" > set theRun to get text for (get selection of note 1 of document 1) > set theText to attribute run 1 of theRun > end tell and with py-appscript, this works: > skim = app('Skim.app') > theRTF = skim.get_text_for(skim.documents[1].notes[1].selection.get()) > print theRTF.attribute_runs[1].get() Charles _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG