If Photos is open and running, AND the album being processed by AppleScript is selected and visible in Photos, then most scripts will run flawlessly. Even then, occasionally (but much less so), even a reference to an album (container) will cause the -1000 AppleEvent Handler error. If you look at some of my other posts (two link to a sample script with notes on my experiments with Photos), you will see that there are some issues in Photos regarding a list of a container and a reference to a container. While I'm only an amateur, I can't see anything wrong with it.īut what I can say - form limited experience with Photos (and much other experience on the internet) is that the Photos AppleScript API is extremely buggy. and you will certainly need to read the script. You will probably want to COMMENT out several sections when running it. RATHER, it is a collection of sections that show how to perform base functions such as getting containers or lists, and I wrote lots of notes to explain my findings. You're welcome to take a look at it here: Testing with Photos V1.0īut please NOTE: It's a NOT a script to necessarily do anything (although I do have a go at finding duplicates, updating keywords, etc.). but I've not had time to do much more with it. So, it's not just AppleScript it would seem.įinally, I wrote a script around a week ago, mainly for me just to test how different things worked. So, I reckon it's just easier to go to Photos and select the right album.įor what it's worth, my favourite Duplicate Manager (PhotoSweeper - on the Mac App Store) when updating the library, requires you to have the "All Photos" album open before it will do its updates. It could be possible to use UI scripting, but it's complex, hard to test, maybe depend on your folder structure, etc. So, it is always best to have Photos displaying the appropriate album.Īnd, unfortunately, no it is not possible to select an Album with AppleScript (or at least through the Photos AppleScript interface). for smaller runs, sometimes it will work, other times not. The AppleEvent Handler error is inconsistent. there is something strange regarding which album is displaying.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |