Scriplting the Photos application
Scriplting the Photos application
- Subject: Scriplting the Photos application
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 18 Apr 2015 15:11:05 -0400
Has anybody made progress scripting Photos?
I am stuck on the 'selection' property of the 'application' class. I can get a reference to a selected 'media item' (a photo) by telling the application to 'get first item of (get selection)'. But if I then try to 'get properties of result' -- or any individual property of a media item -- I get a "handler failed" error instead.
If I give up using the current selection and simply hard code the reference to a media item, I can get all the properties without error. For example, this works: 'get properties of first media item of first container of container "2008" of container "Projects (By Year)" of container "iPhoto events"'.
But this approach forces me to work explicitly with the container hierarchy of the library, entering index numbers or album names in a dialog in order to run a script repeatedly on different photos in different albums. It would be much more convenient if I could just select a photo and then run the script.
|
_______________________________________________
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