• 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: 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


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>)

  • Prev by Date: Re: Scriplting the Photos application
  • 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