Hi all -
Thanks in advance for any help you can offer with this. I would like to have a way to find photos in iPhoto that are in one album (Album A) and NOT in another (Album B). One of the “albums” is a web gallery. The Smart Albums feature in iPhoto ('08) does not show web galleries in the selection list so I can’t make a Smart Album to show photos NOT in the web gallery. In Automator, the web galleries DO show up in the list but I can only choose “album IS” not “album IS NOT”. So, I’ve been trying Applescript but I can’t seem to get it to work. I can set a variable to every photo in the library or in an album and I can select from those variables, but I haven’t been able to selection based on non-membership in an album.
Here’s are some samples of what I’ve tried:
tell application “iPhoto”
set allPhotos to every photo of photo library album – this works
set firstSelection to every photo of album “Album A” – this works, even with a web gallery album
set secondSelection to every photo of album “Album B”-- this works, even with a web gallery album
set theSelection to every photo of photo library album whose album is not “Imported” – Script Editor errors reporting “iPhoto got an error: Can’t make album into type reference.”
I’ve also tried to find some syntax to find photos in firstSelection and not in secondSelection but it never compiles.
Can someone help me out?
Thanks much.
Model: PowerBook G4
AppleScript: 2.2
Browser: Safari 523.10
Operating System: Mac OS X (10.5)