Re: iTunes Library Location?
Re: iTunes Library Location?
- Subject: Re: iTunes Library Location?
- From: John Romanski <email@hidden>
- Date: Tue, 08 Jan 2002 16:22:05 -0500
on 1/8/02 4:09 PM, Craig Sutherland at email@hidden wrote:
>
John-
>
>
Take a look at the File Track class in the iTunes dictionary. File track
>
has a Location element, which returns an alias of the file represented
>
by a track.
>
>
Download the iTunes scripts from Apple's site- they are helpful guides
>
for developing your own scripts.
>
>
HTH
>
>
Craig
I should have been more specific. I have downloaded the Apple files, and
extending them as well, adding some much needed functionality to iTunes.
(I will release the source as soon as I can finish this last one.)
I can get the location for a track, no problem, but no indication of whether
or not the physical file is in the "Library" folder in the Finder. ( The
folder defined in Preferences as "Music Folder Location.)
I have one script that renames the file in the finder and inserts the track
number, using this.
--much error checking removed.
set this_trackno to the track number of this_track
set this_location to the location of this_track
tell application "Finder"
set fileName to name of this_location
end tell
set newName to ((this_trackno & fileName & ".mp3") as string)
tell application "Finder"
set name of this_location to newName
end tell