Resolving a file reference from the iTunes plist
Resolving a file reference from the iTunes plist
- Subject: Resolving a file reference from the iTunes plist
- From: Charles Constant <email@hidden>
- Date: Sat, 02 Nov 2013 10:39:53 -0700
Hello gang,
I noticed upon upgrading to iTunes 11, that iTunes has changed the manner
in which it remembers the path to its library. This is a bummer, as I wrote
myself a script to juggle my multiple iTunes Libraries, and it does''t work
anymore.
In previous versions, iTunes stored its library location as an 'alias ref',
in the iTunes plist, with the key 'alis:1:iTunes Library Location'. In the
new version, iTunes 11, it stores the location with the key
'RDoc:132:Documents' using some format is a mystery to me.
Is it using the 'bookmark data' format? I gather Apple has positioned
'bookmark data' as a replacement for old-style file aliases.
I've had no success interpreting the data as 'bookmark data' so far. If
it's 'bookmark data' I ought to be able to read it with a Python script
using
NSURL.URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_
but the result is always null. This makes me suspect it's not "bookmark
data" after all.
Does anyone here have any idea as to what the mystery format is?
Thanks,
Charles
PS: I've posted a longer explanation here, too:
http://stackoverflow.com/questions/19663069/how-to-switch-to-a-new-itunes-library-location-programmatically
_______________________________________________
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