Re: Finding user's Music folder (and others)?
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