[Pythonmac-SIG] Problems with appscript

James Reese jreese99 at verizon.net
Thu Jun 11 04:43:59 CEST 2009


Hi,

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()


I'm also having problems with the ASDictionary program. Get Info says  
the version is 0.11.2. When I try to run it, it crashes, and these  
messages appear in the console log:

6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049] Traceback  
(most recent call last):
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]   File "/ 
Users/jreese/Development/Python/Appscript/ASDictionary/ 
ASDictionary.app/Contents/Resources/__boot__.py", line 31, in <module>
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]      
_run('ASDictionary.py')
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]   File "/ 
Users/jreese/Development/Python/Appscript/ASDictionary/ 
ASDictionary.app/Contents/Resources/__boot__.py", line 28, in _run
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]      
execfile(path, globals(), globals())
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]   File "/ 
Users/jreese/Development/Python/Appscript/ASDictionary/ 
ASDictionary.app/Contents/Resources/ASDictionary.py", line 17, in  
<module>
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]     import  
osax, appscript, mactypes
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]   File  
"build/bdist.macosx-10.3-i386/egg/osax.py", line 37, in <module>
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]   File  
"build/bdist.macosx-10.3-i386/egg/aem/aemsend.py", line 82, in send
6/10/09 10:36:27 PM  
[0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]  
aem.aemsend.EventError: Command failed: Application could not handle  
this command. (-1708)
6/10/09 10:36:27 PM ASDictionary[9049] ASDictionary Error
6/10/09 10:36:27 PM ASDictionary[9049] ASDictionary Error
An unexpected error has occurred during execution of the main script

EventError: Command failed: Application could not handle this command.  
(-1708)

6/10/09 10:36:29 PM [0x0-0x1e51e5].com.apple.systemevents[9050]  
com.apple.FolderActions.enabled: Already loaded
6/10/09 10:36:30 PM com.apple.launchd[118]  
([0x0-0x1e41e4].net.sourceforge.appscript.asdictionary[9049]) Exited  
with exit code: 255

Any help with these problems will be greatly appreciated.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090610/248d792f/attachment.htm>


More information about the Pythonmac-SIG mailing list