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)'. 

Hi Christiaan-

The following gives me a complete paragraph of text from my highlight:

> 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


Thanks for your help. Let me buy you a beer!

Best wishes, Charles


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to