• 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: 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

  • Follow-Ups:
    • Re: iPhoto returns a real number as a photo id
      • From: Tommy Bollman <email@hidden>
    • Re: iPhoto returns a real number as a photo id
      • From: Doug McNutt <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>)

  • Prev by Date: Re: iPhoto returns a real number as a photo id
  • Next by Date: Re: Filemaker and Transmit
  • 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