Does anybody know how to move some folder to library playlist in iTunes?
I can move some folder to another folder using the following script:
tell application "iTunes" move folder playlist "3" to folder playlist "1" end tell
The initial state is:
1 |--2 |--3
After executing the script state will be:
1 |--2 |--3
But I don't know how to move folder "3" on the same level as folder "1". Folder "1" is located in library. I mean the following structure:
1 |--2 3
bash
unless done usingosascript
, which execute AppleScripts and other OSA language scripts. So doing it from the Script Editor might actually be the easier way to go sincebash
by itself can't cut it as the objects referenced, i.e.folder playlist "n"
, are not actual directories of the host filesystem and therefore do not have paths like/Users/$USER/Music/iTunes/..
and are an entry in an XML file at that location, i.e. the "iTunes Music Library.xml" file.Bash
... :D