Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ncboston

macrumors newbie
Original poster
Sep 6, 2012
19
0
Hello - I am in the process of creating a script to deduce my iPhoto library. I have years and years of photos and I have been consistent with flagging and filing my photos into events. However with every new iPhone or every new update we seem to have built up some duplicates.

Right now I am trying to create a script and I am stuck on how to check if a photo is flagged or not.

This is what I have:
Code:
[
if (flag of thisPhoto = 1) then

                display alert "found flagged photo"

            end if
]
But it is clearly returning an error which is this: "iPhoto got an error: Can’t make flag of photo id 4.294993066E+9 into type reference."

Any help would be greatly appreciated...or if anyone has good online resource that I could use that would be helpful as well.

Thank you.
 
Last edited by a moderator:
Looking at the dictionary of iPhoto 9.5.1 on Mavericks I see no flag property.
You might have better luck with the new Photos app on Yosemite.

Edit : The Find/Filter iPhoto Photos actions in the Automator application both have the option to find photos where Photo is marked as flagged.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.