Re: Itunes - persistent ids not unique (or, managing double integers)
Re: Itunes - persistent ids not unique (or, managing double integers)
- Subject: Re: Itunes - persistent ids not unique (or, managing double integers)
- From: Andrew Bush <email@hidden>
- Date: Sat, 11 Mar 2006 15:52:43 +1300
Hi Stan,
thanks for your reply.
I believe you're seeing a rounding error where the four least
significant
digits are being lost. As a result, more that one song may end up with
the
same truncated ID.
ah, yep. that makes sense.
is applescript capable of handling double integers at all then? or
should I give up this approach as a lost cause?
An alternative unique identifier in iTunes is a particular "file track
id"
of a particular "library playlist id" of a particular "source id".
Perhaps you can figure out a way to do what you want using these.
right, the trouble is Im trying to go from the xml file to the actual
database...the index is the only other identifier that seems to be
stored with tracks and playlists in the xml file - aside from the
persistent id.
so Im *really* keen to use the persistent id if its at all
possible....I must admit to being a little surprised that applescript
isn't handing the doube integer as well as might have been expected.
I could use the location of the track is a unique id for a track if I
had to I guess....but it leaves me lost with respect to the
playlists....there is apparently no id that is guaranteed to be unique.
Yours cheerfully,
Andrew Bush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden