I'm attempting to programmatically rate a song in iTunes.  I hacked together
the following snippet in Applescript, but after reading the docs, I can't
figure out how to convert the "every file..." mechanic to the py-appscript
equivalent.  Any suggestions?

tell application "iTunes"
  set ts to (every file track of playlist "Library" whose name is track_name
and artist is track_artist and album is track_album)
  repeat with t in ts
    set rating of t to track_rating
  end repeat
end tell

Thanks in advance,
-Bill
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to