Clicky

January 9, 2008

Photography - Exif Tag Scrubbing Folder Action

Filed under: TMUP-Blog — George Starcher @ 6:04 am

by: George Starcher, Associate Editor

I promised in the earlier blog post “Photography - Exif Tags” that I would look at how to make an automated folder action to scrub the exif information from any images dropped into the desired folder.

Here is how you do it:

*** WARNING ***

To avoid a loop this uses the overwrite option of exiftool. DO NOT drag in your only copy of original images.

I also would not drag a large number of images into the folder at once.  Also empty the folder once it’s done.  AppleScript folder actions are not very quick.   It could cause a long run time if you drag in too many photos.  This is mainly for quick and easy scrubbing of small groups of images.

  1. Download and install ExifTool by Phil Harvey.
  2. Create the desired scrubbing folder somewhere on your system.
  3. Open up Automator.
  4. Drag the desired folder straight into the Automator window. It will add a “Get Specified Finder Items” object for your folder.
  5. Drag over the Finder action “Get Folder Contents”
  6. Add the Run Shell Script action. Set Pass Input to “as arguments” then paste the below code into the script area. This differs slightly from my previous blog post only in that I added the overwrite original option and quotes around the $name variable on the exiftool line. This gives it the ability to handle spaces in the file names as well as prevents a looping issue caused if you allow it to make a renamed original copy.

    for f in “$@”
    do
    cd `dirname “$f”`
    name=`basename “$f”`
    exiftool -All= -overwrite_original “$name”
    done

  7. Picture 2
    Uploaded with plasq’s Skitch!

  8. Once you have the automator looking similar to the above, click file, choose Save As Plug In. Name it something like “ScrubExif” choose Plug-in For: Folder Actions lastly browse to the folder you specified in the automator. Click save.

You’re done. Drag some images into the folder. Wait a minute and it should scrub the files automatically.

Alternate Solution:  Automator as Application.

If you prefer, just change out the “Get Specified Finder Items” with “Ask for Finder Items”  Be sure to check “Allow Multiple Selections” and change Type to “Files and Folders”   Click File -> Save As and save it as an application.  Then you have a nice double click application that will simply ask you for a folder of images and scrub them in place. If you want to do it this way you could remove the -overwrite_original option from the script for backup of your original images.

Like what you read or heard? Share and Enjoy:
  • digg
  • YahooMyWeb
  • Furl
  • del.icio.us
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl

Viewing 3 Comments

 
close Reblog this comment
blog comments powered by Disqus
 

iPhone ringtones

January 2008
S M T W T F S
« Dec   Feb »
 12345
6789101112
13141516171819
20212223242526
2728293031  
 

typicalmacuser.com (TM) is a wholly owned subsidiary of Typical Media Group, LLC (TM) Copyright 2008,. Use of this web site, including text, graphics, audio and audio/video files content and information contained in those files, internal and external links and all content within (and leads external from) are provided to you only for your personal use. All opinions expressed by the host(s), blog authors, and authors of all comments on the website are their own, and do not in any reflect the opinions or beliefs of Typical Media Group, LLC (TM).