[Pythonmac-SIG] ScriptingBridge vs. AppScript
smithharder at gmail.com
Fri Oct 10 04:45:27 CEST 2008
I've been using Appscript and have been incredibly happy with it. However
I'm having a ton of problems getting the list of tracks from my library. I
was assuming the problem was with my library/iTunes itself however I can get
the track list with ScriptingBridge. Am I doing something wrong? Why would
ScriptingBridge work and AppScript Timeout? Any ideas.
from ScriptingBridge import *
from appscript import *
lib = itunes.sources().playlists()
tracks = lib.tracks()
if __name__ == "__main__":
kona:Python joe$ time python tt.py
Python: unknown type name "tdta".
Traceback (most recent call last):
File "tt.py", line 23, in <module>
File "tt.py", line 19, in main
line 439, in __call__
appscript.reference.CommandError: CommandError -609: connectionInvalid
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pythonmac-SIG