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.