• 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: Rob Lewis <email@hidden>
  • Date: Sun, 13 Jun 2010 10:35:24 -0700

Hmm. I haven't really been paying attention, but IIRC, all the photo id's I've fetched seem to always start with "4." and end with "E+9". 

Is there a clue here? 

On Jun 13, 2010, at 10:19 AM, email@hidden wrote:


iPhoto's scripting dictionary says that the "id" property of a photo is an integer. Yet when you fetch it, it's returned as a real number. What is one supposed to do with that? Very odd IMO. 

Not only that, but casting it as an integer yields strange results.

tell application "iPhoto"
(id of some photo) as integer
end tell

tell application "iPhoto"
get id of some photo
--> 4.29496965E+9
end tell
Result:
2354

Shouldn't it be 4294969650?

-- 

 _______________________________________________
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: Shane Stanley <email@hidden>
  • Prev by Date: Re: iPhoto returns a real number as a photo id
  • Next by Date: 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