• 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: Shane Stanley <email@hidden>
  • Date: Mon, 14 Jun 2010 09:55:47 +1000
  • Thread-topic: iPhoto returns a real number as a photo id

Let me try again.
On 14/6/10 3:09 AM, "Rob Lewis" <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.

It looks like they're stored as integers that are outside AS's integer
range, and so AS coerces them to reals. Let me ask, what can't you do with
them that you could if they were integers?


> Other Apple apps (e.g., Address Book) use 128-bit unique IDs, returned as a
> string of 32 hex digits, in the same format used by the "uuidgen" command line
> utility. These are guaranteed to be unique. I doubt that iPhoto makes any such
> guarantee, or at least I can't find any mention of it.

Why would they not be unique?

--
Shane Stanley <email@hidden>



 _______________________________________________
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

References: 
 >iPhoto returns a real number as a photo id (From: Rob Lewis <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