programmatically updating iTunes track location
Posted
by Ben Clifford
on Stack Overflow
See other posts from Stack Overflow
or by Ben Clifford
Published on 2010-05-09T19:28:02Z
Indexed on
2010/05/10
5:08 UTC
Read the original article
Hit count: 274
itunes
|applescript
I would like to modify the filesystem path for tracks on itunes programmatically, so that I can apply a string transformation to some of the tracks locations (which are now stored in a different places on the filesystem).
I've tried using AppleScript to update the location property of the relevant tracks but I get an end-of-file error when calling "set mytrack's location to ..."
I've seen various other hacks online that involve exporting the entire track db, modifying it in XML, and then reimporting it - but that seems to lose too much metadata (such as playlists).
© Stack Overflow or respective owner