• 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: Scriplting the Photos application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Scriplting the Photos application
      • From: Yvan KOENIG <email@hidden>
    • Re: Scriplting the Photos application
      • From: 2551 <email@hidden>
References: 
 >Scriplting the Photos application (From: Bill Cheeseman <email@hidden>)
 >Re: Scriplting the Photos application (From: Shane Stanley <email@hidden>)
 >Re: Scriplting the Photos application (From: Bill Cheeseman <email@hidden>)
 >Re: Scriplting the Photos application (From: 2551 <email@hidden>)
 >Re: Scriplting the Photos application (From: Shane Stanley <email@hidden>)
 >Re: Scriplting the Photos application (From: Bill Cheeseman <email@hidden>)
 >Re: Scriplting the Photos application (From: Shane Stanley <email@hidden>)
 >Re: Scriplting the Photos application (From: 2551 <email@hidden>)
 >Re: Scriplting the Photos application (From: 2551 <email@hidden>)
 >Re: Scriplting the Photos application (From: Bill Cheeseman <email@hidden>)
 >Re: Scriplting the Photos application (From: Bill Cheeseman <email@hidden>)
 >Re: Scriplting the Photos application (From: 2551 <email@hidden>)
 >Re: Scriplting the Photos application (From: Bill Cheeseman <email@hidden>)
 >Re: Scriplting the Photos application (From: Shane Stanley <email@hidden>)
 >Re: Scriplting the Photos application (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Why does opening any script editor open many other apps?
  • Next by Date: Re: Scriplting the Photos application
  • Previous by thread: Re: Scriplting the Photos application
  • Next by thread: Re: Scriplting the Photos application
  • Index(es):
    • Date
    • Thread