I'm trying to figure out how AOEM queries work on iTunes, the code I'm trying looks like:
for track in library.tracks[appscript.its.name().encode("utf-8").find("Sun")]: (I'm trying to find all the tracks in my library with the string "Sun" in the title) and the error I'm getting is: Traceback (most recent call last): File "./find_deleted_files2.py", line 78, in <module> main() File "./find_deleted_files2.py", line 75, in main process_library(library) File "./find_deleted_files2.py", line 68, in process_library for track in library.tracks[appscript.its.name().encode("utf-8").find("Sun")]: File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-i386.egg/appscript/reference.py", line 524, in __getitem__ AttributeError: 'int' object has no attribute 'AS_aemreference' what am I doing wrong? thanks, --dave -- The Whole World + This Email = The Whole World _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig