Re: Scriplting the Photos application
Re: Scriplting the Photos application
- Subject: Re: Scriplting the Photos application
- From: Axel Luttgens <email@hidden>
- Date: Sun, 19 Apr 2015 12:45:25 +0200
> Le 19 avr. 2015 à 12:11, Bill Cheeseman a écrit :
>
>> On Apr 18, 2015, at 7:13 PM, Shane Stanley wrote:
>>
>> 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
>
> It does not work for me. I get a "Script Error" alert saying "Photos got an error: AppleEvent handler failed" -- on two separate computers, both running OS X 10.10.3 (with the supplemental update). I'll try rebooting later today, but the fact that it's happening on two computers suggests that won't help. I wonder what it could be.
Hello Bill,
In addition to Shane’s code, all of these snippets are working here as well (Photos 1.0 (209.52.0), SE 2.7 (176)):
tell application "Photos"
properties of first item of (get selection)
end tell
tell application "Photos"
set mediaItem to first item of (get selection)
properties of mediaItem
end tell
tell application "Photos"
set mediaItemId to id of first item of (get selection)
properties of media item id mediaItemId
end tell
Strange…
Axel
_______________________________________________
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