[Pythonmac-SIG] coercing to text

Adam Morris amorris at mistermorris.com
Mon Dec 14 12:18:13 CET 2009


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,
>  nad at acm.org
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20091214/d6d00198/attachment.htm>


More information about the Pythonmac-SIG mailing list