Page 1 of 1

Using Hazel to add keywords and title for Photos for OS X

PostPosted: Wed May 06, 2015 1:03 am
by L2L
Is there a way to edit a file's EXIF data in Hazel? I would like to make my photo title match my filename and also add a keyword "cull". I saw a few posts about Phil Harveys EXIFTool but was curious if I could do it natively within Hazel.

I know AppleScript has a dictionary for the new Photos app for OS X but I've never used AppleScript before so I'm not sure how to write the code. I did come across some code that someone posted where you can actually do this from within Photos but it requires you to select the photos inside Photos app and I'd like to just add it to my Hazel import workflow. Here's the code in case it helps.

Code: Select all
on run {input, parameters}
   tell application "Photos"
      activate
      set the name of im to the filename of im
   end tell
end run


Thanks.
Lori

Re: Using Hazel to add keywords and title for Photos for OS

PostPosted: Wed May 06, 2015 12:15 pm
by Mr_Noodle
Search the help for "AppleScript" as you need to change that script to work with Hazel. If embedding it in Hazel, in the very least, get rid of the handler (the "run" stuff). Also, not sure what "im" is referring to but the script instead should refer to "theFile", which is the file being processed.

Re: Using Hazel to add keywords and title for Photos for OS

PostPosted: Wed May 06, 2015 7:55 pm
by L2L
Thank you Mr_Noodle.