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: Tommy Bollman <email@hidden>
- Date: Mon, 14 Jun 2010 04:25:10 +0200
On 14. juni 2010, at 02.08, Michelle Steiner wrote:
>
> On Jun 13, 2010, at 4:59 PM, Deivy Petrescu wrote:
>
>> that is a problem with AppleScript number representation
>>
>> set x to 1234567890
>> --obviously x is an integer
>> class of x
>> -->real
>
> But notice that when you compile the script, it changes to
> set x to 1.23456789E+9
> And that is a real.
>
> Apparently, Applescript changes all integers to reals if they fall outside the range of integers.
>
> set x to "1234567890" as integer
> --> 1.23456789E+9
The value is still an int.
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
_______________________________________________
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