Re: Scriplting the Photos application
Re: Scriplting the Photos application
- Subject: Re: Scriplting the Photos application
- From: Shane Stanley <email@hidden>
- Date: Sun, 19 Apr 2015 09:13:18 +1000
On 19 Apr 2015, at 5:11 am, Bill Cheeseman <email@hidden> wrote:
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.
This works fine here:
tell application id "com.apple.Photos" -- Photos set theSelection to selection repeat with i from 1 to count of theSelection properties of item i of theSelection end repeat end tell
There seem to be timing issues when changing some properties, but otherwise it seems to work.
|
_______________________________________________
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