Re: iPhoto returns a real number as a photo id
Re: iPhoto returns a real number as a photo id
- Subject: Re: iPhoto returns a real number as a photo id
- From: Shane Stanley <email@hidden>
- Date: Tue, 15 Jun 2010 09:50:51 +1000
- Thread-topic: iPhoto returns a real number as a photo id
On 15/6/10 9:21 AM, "Doug McNutt" <email@hidden> wrote:
> It would be a bit difficult to mask off the part of the ID that refers to a
> photo session or perhaps the date bits. But then Is the format of the ID
> integer public information in iPhoto?
I don't think so, but I don't really know. And bit-masking isn't directly
supported in AS anyway; you need to use mod, which will work just as well
with reals.
>
> AppleScript would have considerable difficulty printing out an ID stored that
> way if there is a desire to match what iPhoto prints.
Either way is coercion to a string.
>> Where are these 62-bit integers you speak of?
>
> Surely he's referring to an integer that is two bits shy of 64 the same way 30
> is two bits shy of 32.
I understand what he means -- I was asking whether they actually exist.
>
> But even that's not completely clear in Applescript. which seems to be limited
> to 2^29 -1 regardless of the size of the integer on the current machine.
Maybe they are 62-bit but limited for backwards compatibility. But the
reason is irrelevant; what matters is what the limit is.
--
Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden