Use

get text for (get selection)

This is a generic AppleScript bug. Whenever something doesn't work,  
try throwing in a "get" (personally I almost always insert the extra  
"get", whether it's necessary or not, because I'm getting tired of the  
extra testing step).

Christiaan

On 4 Dec 2008, at 1:54 PM, Jan Erik Moström wrote:

> Christiaan Hofman <[EMAIL PROTECTED]> 08-12-04 13.23
>
>> The selection is not a simple object, so it cannot have
>> properties  (this really is a weakness of AppleScript, one of
>> many). To get the  text for a selection you use the special
>> command "get text for" rather  than the "get" command.
>
> Unfortunately I'm not able to figure out the correct syntax. As
> I read the dictionary I should be able to write
>
> on run
>     tell application "Skim"
>         tell document 1
>             get text for selection
>         end tell
>     end tell
> end run
>
> but since it doesn't work I'm missing something.
> -- 
> Jan Erik Moström
> mostrom.eu
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Skim-app-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/skim-app-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to