Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Sort iTunes playlists by date and track number' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sort iTunes playlists by date and track number
Authored by: burgerga123 on Dec 07, '09 11:58:52AM
Hmmm... I'm not quite getting what I need to do to get this to work. I installed appscript fine. And I pasted the code in to text edit and saved it with a .py extension. Typed chmod a+x ~/ which seemed to work. Then when I execute the program in terminal it gives me some sort of error.

Traceback (most recent call last):
  File "/Users/garrisonburger/", line 165, in <module>
    finished = makePlaylist(iTunes, sortedSongs, newPlaylist, playlist, verbose)
  File "/Users/garrisonburger/", line 152, in makePlaylist
    location = playlists[oldPlaylist].parent()
  File "build/bdist.macosx-10.6-universal/egg/appscript/", line 648, in __call__
  File "build/bdist.macosx-10.6-universal/egg/appscript/", line 504, in __call__
appscript.reference.CommandError: Command failed:
		OSERROR: -1728
		MESSAGE: Can't get reference.
		COMMAND: app(u'/Applications/').user_playlists['Recently Added'].parent.get()

Not quite sure what I'm doing wrong. I tried running it with the -p and -n parameters but got the same error. Any help?

[ Reply to This | # ]