Re: iTunes and persistent ID
Re: iTunes and persistent ID
- Subject: Re: iTunes and persistent ID
- From: Matt Deatherage <email@hidden>
- Date: Sat, 26 Aug 2006 11:00:08 -0500
On 8/26/06 at 10:04 AM, Emmanuel <email@hidden> wrote:
> 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.
This assumes that IDs are more or less created sequentially, starting
with "1", and that the low 52 bits will always be completely filled
before iTunes goes to the 53rd bit. I don't think that's the case - I
think IDs are created with some kind of hash and can easily be truncated
in AppleScript.
--Matt
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
The second mouse gets the cheese.
_______________________________________________
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