Re: [Pythonmac-SIG] coercing to text (Adam Morris)

2009-12-15 Thread has
Adam Morris wrote: > ASTranslate tells me that > tell application "Pages" to tell front document to get selection as text > should be > app(u'Pages').documents[1].selection.get(resulttype=k.unicode_text) > > but that doesn't return what I want (a reference? ... hardly useful!). Yet: > > app('Pag

Re: [Pythonmac-SIG] coercing to text (Adam Morris)

2009-12-15 Thread Adam Morris
ASTranslate tells me that tell application "Pages" to tell front document to get selection as text should be app(u'Pages').documents[1].selection.get(resulttype=k.unicode_text) but that doesn't return what I want (a reference? ... hardly useful!). Yet: app('Pages').documents[1].selection()() ret