• 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: Getting iPhoto album ID with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting iPhoto album ID with AppleScript


  • Subject: Re: Getting iPhoto album ID with AppleScript
  • From: has <email@hidden>
  • Date: Sun, 14 Oct 2007 19:32:13 +0100

Nikita Zhuk wrote:

If the 'album' class's 'id' property is meant to represent the AlbumId, that is a bug and should be reported as such. If it's meant to contain an arbitrary unique value solely for use in identifying album elements by id, that's just shortsighted design and you should put in a feature request asking for it to use the AlbumId, which is more useful, instead.

I assumed before that the 'album' class's 'id' property is meant to represent the AlbumId and not an arbitrary UUID. iPhoto AppleScript dictionary defines it as "id (integer, r/o) : The unique ID of the album.". AlbumId is unique inside an iPhoto library, UUID is unique globally,

According to the Apple Event Object Model spec (what there is of it), an 'id' property must provide a UUID of some kind [1]. If AlbumId isn't unique globally (I'd assumed it was) then the iPhoto engineers have done the right thing by not using it [as-is] for the 'id' property.



so I don't know which scope is meant here. It could mean either one, although it looks more like UUID. I should definitely file a feature request.

If AlbumId isn't guaranteed to be unique, the iPhoto engineers should add a separate 'album id' property specifically for the purpose.


Come to think of it... even if AlbumId is [currently] unique, having a separate 'album id' property may well be the wisest choice anyway, since it'll future-proof everything against any changes they might decide to make later on. Therefore, I'd recommend you ask specifically for a separate 'album id' property to be added.


While you're at it, you might also caution them about using SInt64s given AppleScript's problems with integer precision, and suggest they use hex strings a-la the latest iTunes if they want to be safe. (Yes, it's entirely AppleScript's fault for being made of fail, but as long it's the standard by which everyone else is measured there's little point in arguing with it.)



HTH, and feel free to include [any parts of] this discussion with your feature request.


has

[1] Since the purpose of the by-id specifier form - which is where these values are used - is to provide a persistent reference to a single application object.
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org


_______________________________________________
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
  • Prev by Date: Re: display alert giving up after
  • Next by Date: Re: display alert giving up after
  • Previous by thread: Re: Getting iPhoto album ID with AppleScript
  • Next by thread: Remote FileMaker Database Access
  • Index(es):
    • Date
    • Thread