Re: iTunes and persistent ID
Re: iTunes and persistent ID
- Subject: Re: iTunes and persistent ID
- From: Emmanuel <email@hidden>
- Date: Sat, 26 Aug 2006 17:04:40 +0200
At 9:48 AM +0100 8/26/06, has wrote:
Dave Dribin wrote:
The dictionary has an "item" class with "persistent ID" property.
[...]
Note that persistent IDs are completely unreliable in AppleScript.
[...] AppleScript throws away the bottom twelve bits [...] different
IDs can (and often do) appear as the same number in AS.
That's a very important warning.
However I find that (in practical situations) "completely" and
"often" are slightly exaggerated here.
Suppose you've got 10,000 tracks in your iTunes library. Then since
you are storing only 52 bits (which makes more than hundreds
thousands of billions different numbers, 10^14+) instead of 64 two
different IDs will appear the same with probability less than
1/10,000,000,000.
I would say that Dave's problem depends on how many users he expects.
If he expects more than a few billions, yes he should be aware that
some intensive users may be affected.
Emmanuel
_______________________________________________
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