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