Re: Resolution to iTunes List to Toast List Problem
Re: Resolution to iTunes List to Toast List Problem
- Subject: Re: Resolution to iTunes List to Toast List Problem
- From: T&B <email@hidden>
- Date: Sun, 29 Dec 2002 20:25:42 +1100
Write an AppleScript to move a song list from iTunes to a Roxio Toast
Titanium MP3 list - all in Mac OS X. The order of the songs in iTunes
must
be maintained.
My requirement is slightly different. I want to maintain the
Artist/Album folder structure on the CD since my MP3CD player allows me
to navigate through subfolders to pick the album I want. Also, I want
to make aliases of the original song files instead of copying them,
since Toast will happily resolve the aliases, the script runs faster
and it takes less disk space. So here's an alternate script:
set rootFolder to choose folder
set rootPath to rootFolder as text
tell application "iTunes"
set playlistName to name of current playlist
tell every file track in user playlist playlistName
set fileList to location
set albumList to album
set artistList to artist
end tell
end tell
repeat with fileN from 1 to count of fileList
set thisFile to item fileN in fileList
set thisAlbum to item fileN in albumList
set thisArtist to item fileN in artistList
tell application "Finder"
set thisName to name of thisFile
if not (exists item (rootPath & thisArtist & ":" & thisAlbum & ":"
& thisName)) then
if not (exists item (rootPath & thisArtist)) then
make new folder with properties {name:thisArtist} at alias
rootPath
end if
if not (exists item (rootPath & thisArtist & ":" & thisAlbum))
then
make new folder with properties {name:thisAlbum} at alias
(rootPath & thisArtist)
end if
make new alias file at folder (rootPath & thisArtist & ":" &
thisAlbum) to thisFile
end if
end tell
end repeat
Tom
T&B
http://www.tandb.com.au/applescript/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.