In Applescript, I would write the following:

tell app "Pages" to tell front document to get its selection  -- text from
character x to character y
tell app "Pages" to tell front document to get its selection as text  --
"whatever is selected"


> Are you sure you are formulating the correct reference?  Normally there
> is no need to coerce the type.  You might want to try has's ASTranslate
> tool:  http://appscript.sourceforge.net/tools.html
>
> --
>  Ned Deily,
>  n...@acm.org
>
>
>
>
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to