• 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: Finding the iTunes Music Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the iTunes Music Library


  • Subject: Re: Finding the iTunes Music Library
  • From: has <email@hidden>
  • Date: Wed, 1 Oct 2008 09:45:17 +0100

Mr. Gecko wrote:

Hello I am needing to know how to find the iTunes Music Library. I
know people could have it in places other than ~/Music/iTunes/ because
I moved mine to /Volumes/Music/ by holding down option at iTunes start.
How would I determine where it is located. I looked in
com.apple.iTunes.plist and it contained alis:1:iTunes Library Location
as a NSData, but I can't figure out how to get the data from the
NSDictionary and it could also be alis:2 so on so how would I get that?


'alis' is the OSType for a Carbon Alias type, so I'm guessing that's probably what's in your your NSData. See the Carbon Alias Manager documentation for more info.

Of course, poking around in an application's (presumably) private preferences file probably isn't the best way to find out where its library lives, but I don't see anything in its scripting interface that can provide this information directly (although you could maybe kludge it), so you might not have much choice. Any particular reason you're wanting this stuff?

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Which View to use?
  • Next by Date: Newbie: Simple display with NSView - problem
  • Previous by thread: Re: Which View to use?
  • Next by thread: Newbie: Simple display with NSView - problem
  • Index(es):
    • Date
    • Thread