• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes and persistent ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: iTunes and persistent ID
      • From: Matt Deatherage <email@hidden>
References: 
 >Re: iTunes and persistent ID (From: has <email@hidden>)

  • Prev by Date: Re: iTunes and persistent ID
  • Next by Date: Re: iTunes and persistent ID
  • Previous by thread: Re: iTunes and persistent ID
  • Next by thread: Re: iTunes and persistent ID
  • Index(es):
    • Date
    • Thread