I'm trying to find away to create an automator action that puts photos into iPhoto but also adds the hidden tag to them. I've started with the folder action template because I'd like to save the files there and have automator kick off a series of steps that ends with the original image being hidden once I've had the enhancement, re-size, etc steps fire off. The only step I can't figure out is applying the hidden image attribute.
AppleScript does not seem to presently have a method for setting a given photo as hidden. If you make a selection in iPhoto, then open the AppleScript Editor and paste this code and run it:
You'll see that there is no "hidden: true/false" property. Here is an example of the details found on an item that I hid in iPhoto to see what the available properties are:
My advice is to create an album in iPhoto called something like "Hidden" and then in your Automator workflow add the photos you wish to be hidden to that album so you know to manually process them easier.
Alternatively, you could set the comment of a photo to include some tag like "hidden" or "to hide" and then create a smart album with that condition. When your photos are processed by the computer, all photos that still need to be hidden will show up in that smart album which you can process and then blank out the comment. However, manipulating the comment would require AppleScript in your Automator Workflow. If you want to use that method, then add the Run AppleScript task into the workflow, and then paste this under the comment (* Your script goes here *):