• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes Library Location?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: iTunes Library Location? (From: Craig Sutherland <email@hidden>)

  • Prev by Date: Re: iTunes Library Location?
  • Next by Date: File I/O
  • Previous by thread: Re: iTunes Library Location?
  • Next by thread: File I/O
  • Index(es):
    • Date
    • Thread