[Pythonmac-SIG] Problems with appscript

has hengist.podd at virgin.net
Thu Jun 11 16:06:17 CEST 2009


James Reese wrote:

> I'm having several problems with appscript. I'm running OS X 10.5.7  
> with all the latest updates, and I've installed the latest release  
> using easy_install:
>
> Python 2.5.1 (r251:54863, Feb  6 2009, 19:02:12)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import appscript
> >>> appscript.__version__
> '0.19.0'
>
> I've downloaded the sample scripts, and when I try to run  
> AB_list_people_with_emails.py, I get this:
>
> > ./AB_list_people_with_emails.py
> Traceback (most recent call last):
>  File "./AB_list_people_with_emails.py", line 9, in <module>
>    for name, emails in zip(peopleref.name.get(),  
> peopleref.emails.value.get()):
>  File "/Library/Python/2.5/site-packages/appscript-0.19.0-py2.5- 
> macosx-10.5-i386.egg/appscript/reference.py", line 513, in __call__
> appscript.reference.CommandError: Command failed:
> 		OSERROR: -1708
> 		MESSAGE: Application could not handle this command.
> 		COMMAND: app(u'/Applications/Address Book.app').people[its.emails ! 
> = []].name.get()

Don't suppose you have Default Folder X installed? There's been a  
couple other recent compatibility reports with that - it's being  
looked into.

has

-- 
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net



More information about the Pythonmac-SIG mailing list