Re: Scriplting the Photos application
Re: Scriplting the Photos application
- Subject: Re: Scriplting the Photos application
- From: 2551 <email@hidden>
- Date: Mon, 20 Apr 2015 11:28:25 +0700
> On 20 Apr 2015, at 04:16, Axel Luttgens <email@hidden> wrote:
>
>
> Same here,
> Axel
Bill, it may be time to stop banging your head against the wall; it's bug filing time AFAIC.
I ran the same script 6 times in a row without changing a thing, on the same 2-item selection in the same album, and I got 3 different kinds of replies. Here's the results of each run, about 5 seconds apart:
tell application id "com.apple.Photos"
repeat with i from 1 to count of selection
properties of item i of (get selection)
end repeat
end tell
Results:
Run 1: "handler failed"
Run 2: "handler failed"
Run 3: "handler failed"
Run 4: "invalid index" --(on item 2, which makes no sense since the index is the count of the selection and the log shows the selection contains two items and that the count is 2).
Run 5 --> success, all properties returned on both items of the selection
Run 6: "handler failed"
Best
Phil
DisplayDroid beta (a lightweight script editor and automation tool) is now available for free download. More info on sqwarq.com/displaydroid
OSXClock - big, beautiful alarm clock and timer for your mac. More info on sqwarq.com/osxclock
http://applehelpwriter.com
http://sqwarq.com - apps for OS X & iOS
_______________________________________________
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