Re: Drag & Drop iTunes Playlists
Re: Drag & Drop iTunes Playlists
- Subject: Re: Drag & Drop iTunes Playlists
- From: Aalok <email@hidden>
- Date: Tue, 6 Jun 2006 10:07:11 +0530
Hi,
what I am getting on the pasteboard is
PasteboardRef: 3325728 ItemCount: 1
Index: 1 item ID: 1
"dyn.agk80w7dzr2"
""
'itun' P__n__ 6448 <?xml version= 1.0 encoding= UTF-8 ?> <
DOCTYPE plist PUBLIC -//Apple Computer
and the library entry in the xml is....
<dict>
<key>Name</key><string>TestPlayList</string>
<key>Playlist ID</key><integer>197</integer>
<key>Playlist Persistent ID</key><string>CB6A99E7FD01BEE1</string>
<key>All Items</key><true/>
<key>Playlist Items</key>
<array>
<dict>
<key>Track ID</key><integer>51</integer>
</dict>
<dict>
<key>Track ID</key><integer>48</integer>
</dict>
<dict>
<key>Track ID</key><integer>52</integer>
</dict>
<dict>
<key>Track ID</key><integer>53</integer>
</dict>
<dict>
<key>Track ID</key><integer>54</integer>
</dict>
<dict>
<key>Track ID</key><integer>38</integer>
</dict>
<dict>
<key>Track ID</key><integer>55</integer>
</dict>
</array>
</dict>
but there is no mapping between them. But one thing worth mentioning is
'itun' P__n__ 6448 on the paste board remains same for the playlist
every time I drop it there. It is certainly not the Persistent ID.
any clue...
aalok
On 6/5/06, I. Savant <email@hidden> wrote:
Aalok:
I *think* I know what you're asking / the information you're missing.
I haven't played with this personally, but what *do* you get on
the pasteboard? If it's a number, it may be the "persistent id" of
the playlist. In which case, you'd need to parse the XML version of
the iTunes library (it's a PLIST, so you can open it as a dictionary
or array, depending on its structure) stored in the user's home
folder (look into iTunes' preferences to get the actual location the
user set).
Each playlist in this file has a persistent id. I'm guessing (if
you're just getting an inexplicable number) that it'll be the
persistent id. From there you can retrieve the playlist by its id,
then retrieve its name.
I'm *guessing* that's all you're really asking for. If not, let us
know (be specific!).
--
I.S.
On Jun 5, 2006, at 10:06 AM, Aalok wrote:
> Hi, thankx a lot for your reply.
>
> The problem I am having here is on playlist drop I dont get the
> playlist name.
> Is there any way to get that thing?
>
> I appreciate all your help.
>
> Best Regards,
> Aalok
>
> On 6/5/06, John Stiles <email@hidden> wrote:
>> I don't know the answer, but if it's urgent, maybe experiment with
>> this:
>> http://developer.apple.com/samplecode/PasteboardPeeker/index.html
>>
>> Aalok wrote:
>> > Hi,
>> >
>> > The following link provides a software which offers drag and drop
>> > facility of iTunes playlists and songs on window. Download the
>> latest
>> > trial version to try.
>> >
>> > http://www.dj1800.com/index.php
>> >
>> > I need the similar functionality. Can any one please help.
>> >
>> > Its very urgent.
>> > Regards,
>> > Aalok
>> > --
>> > _______________________________________________
>> > Do not post admin requests to the list. They will be ignored.
>> > Cocoa-dev mailing list (email@hidden)
>> > Help/Unsubscribe/Update your Subscription:
>> 40blizzard.com
>> >
>> > This email sent to email@hidden
>>
>
>
> --
> Tata Consultacy Services
> Voice:- (091) 9850984395
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40gmail.com
>
> This email sent to email@hidden
--
Tata Consultacy Services
Voice:- (091) 9850984395
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden