[Pythonmac-SIG] findertools Error
Rajanikanth Jammalamadaka
rajanikanth at gmail.com
Tue Sep 16 01:46:39 CEST 2008
Could somebody please tell me why I get this error?
>>> import findertools
>>> findertools.sleep()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
findertools.sleep()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/findertools.py",
line 80, in sleep
finder.sleep()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py",
line 65, in sleep
_arguments, _attributes)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/aetools.py",
line 226, in send
return self.sendevent(self.newevent(code, subcode, parameters, attributes))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/aetools.py",
line 220, in sendevent
self.send_timeout)
Error: (-600, 'no eligible process with specified descriptor')
>>> from appscript import *
>>> app(u'Finder').sleep()
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
app(u'Finder').sleep()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-i386.egg/appscript/reference.py",
line 439, in __call__
raise CommandError(self, (args, kargs), e)
CommandError: CommandError -1708: Application could not handle this command.
Failed command: app(u'/System/Library/CoreServices/Finder.app').sleep()
>>> app(u'Finder').sleep()
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
app(u'Finder').sleep()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-i386.egg/appscript/reference.py",
line 439, in __call__
raise CommandError(self, (args, kargs), e)
CommandError: CommandError -1708: Application could not handle this command.
Failed command: app(u'/System/Library/CoreServices/Finder.app').sleep()
Also, what would be the best way to mount a .dmg file using appscript?
Thanks,
Raj
More information about the Pythonmac-SIG
mailing list