• 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 user's Music folder (and others)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding user's Music folder (and others)?


  • Subject: Re: Finding user's Music folder (and others)?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 18 Sep 2009 12:02:19 -0700


On Sep 17, 2009, at 9:32 PM, Graham Cox wrote:

It's also pretty common to relocate it - don't assume it's unusual. Quite a few people like to keep their music on an external drive so whatever it is you're doing, if you assume ~/Music/, it'll fail in those cases, as you realise.

Yes! I've sent bug reports to so many developers of iTunes utilities that hardcode this :P


Probably better to work out how to obtain iTunes setting - maybe by peeking at its prefs.

Just use NSUserDefaults:

$ defaults read com.apple.iApps
{
iTunesRecentDatabasePaths = (
"/Users/Shared/snej/Music/iTunes/iTunes Music Library.xml"
);
iTunesRecentDatabases = (
"file://localhost/Users/Shared/snej/Music/iTunes/iTunes Music Library.xml "
);
}


—Jens_______________________________________________

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


References: 
 >Finding user's Music folder (and others)? (From: Rick Mann <email@hidden>)
 >Re: Finding user's Music folder (and others)? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Running Safari from application
  • Next by Date: Re: What is the life of the c string returned by NSString's UTF8String method?
  • Previous by thread: Re: Finding user's Music folder (and others)?
  • Next by thread: Making a new "ICNS file" with NSImage
  • Index(es):
    • Date
    • Thread