[Pythonmac-SIG] coercing to text

Ned Deily nad at acm.org
Sun Dec 13 20:56:19 CET 2009


In article 
<9b202abc0912130745u53d4fe79vfd9ca0a2aa8390f0 at mail.gmail.com>,
 Adam Morris <amorris at mistermorris.com> wrote:
> Quick question from someone getting used to appscript with python.
> 
> How do I coerce into a text?
> 
> reference.get(resulttype=k.text)
> 
> But that doesn't seem to do what I want it to do. In Applescript I actually
> get the string, but in appscript I still get a reference.

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



More information about the Pythonmac-SIG mailing list