• 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: iPhoto returns a real number as a photo id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: iPhoto returns a real number as a photo id
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: iPhoto returns a real number as a photo id (From: Shane Stanley <email@hidden>)
 >Re: iPhoto returns a real number as a photo id (From: Michelle Steiner <email@hidden>)
 >Re: iPhoto returns a real number as a photo id (From: Deivy Petrescu <email@hidden>)
 >Re: iPhoto returns a real number as a photo id (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: iPhoto returns a real number as a photo id
  • Next by Date: Re: iPhoto returns a real number as a photo id
  • Previous by thread: Re: iPhoto returns a real number as a photo id
  • Next by thread: Re: iPhoto returns a real number as a photo id
  • Index(es):
    • Date
    • Thread