Tue 24th Jul 2007
appscript, network access and no password
Posted late evening, filed under Python.Okay, I think I’ve found an appscript bug.
If you attempt to connect to a networked machine, such as doing:
>>> from appscript import *
>>> it = app(url=”eppc://user@machine.local/iTunes”)
>>> it.activate()
Which works fine if you have a password, fails if there is no password. And the error reported is:
RuntimeError: Can’t get terminology for application (aem.Application(url=’eppc://user@machine.local/iTunes’)): CommandError -128: userCanceledErr
Just because I haven’t put in a password, doesn’t mean I have cancelled the operation.
I’m still working on a fix to get it to work.
Couldn’t find one in the Source Code, but did find a workaround.
If you have another account on the machine that has a password, and has Administrator access, you can use that.
I can’t seem to get passwords to stick in the keychain, however.
1 hour, 13 minutes after the fact.