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: Michelle Steiner <email@hidden>
- Date: Sun, 13 Jun 2010 17:08:33 -0700
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
-- Michelle
--
You can not change the world without perforce changing yourself.
_______________________________________________
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