8 Responses to “ExifTool and the Automator”

  1. Graham Parker says:

    This is very interesting info just what I need especially as I have just got a lensbaby Thank you
    One question if you don’t mind its a bit of a dumb one sorry
    Where can I get a pop up window like yours showing more info
    Thanks again
    Graham

  2. Klaus Messlinger says:

    Hi Graham,

    in Preview, just press Cmd+i while an image is open or use the menu (under “tools” you will find the “show information” entry).

    Hope that answers your question.

    Klaus

  3. Laurent says:

    Hi,
    You have done a fantastic tool, I no nothing about scripting, but your example is exactly what I was looking for, I’m a photograph, and I use a lot of manuals lenses, and I was looking for a loooooong time your trick of the “Write Lens Make And Aperture”
    Will it be possible to add a dialog box with text input fields like this :
    Lens : ………
    Focal length : ………
    Aperture : ……….

    and then the program write in the EXIF the value entered before !
    like this, you don’t have to create a Automator droplet for each combinaison of Lens/Aperture used

    can you tell me how to add such feature in the automator script ?
    Thank you very much for your work

    Best regards
    Laurent

  4. Klaus Messlinger says:

    Hi Laurent,

    thank you for your comment. Unfortunately, I do not know enough about Apple Script to help you out. As a matter of fact, I would be glad if someone came up with a solution to this, as it would be quite useful for most of the other ExifTool operations described in my blog (e.g. to set timezones).

    Any contributions are greatly appreciated!

    Klaus

  5. Laurent says:

    Hi,
    well after looking a bit, I found a great way, not perfect, but here it is :

    After loading the file, ask Automator to do an Applescript script :

    on run {input, parameters}
    set r to text returned of (display dialog “Lens parameter :” default answer “{\”Lens\”,\”Focal\”,\”Aperture\”}”)
    set r to run script r
    return r & input
    end run

    Than the Shell script :
    var1=”$1″
    var2=”$2″
    var3=”$3″
    shift 3
    for f in “$@”
    do
    exiftool -overwrite_original -Lens=”$var1″ -FocalLength=”$var2″ -ApertureValue=”$var3″ -FNumber=”$var3″ “$f”
    done

    That’s all

    Great no !!

  6. Sebastian says:

    Hi

    You have a nice walkthrough here, though I keep finding myself stuck. I’m trying to add the lens type, and have done what you were doing with the lensbaby, but simply missing the focal length and aperture parts out. In the run script shell itself I’m using:

    for f in “$@”
    do
    exiftool -overwrite_original -Lens=’70.0-300.0 mm f/4.5-5.6′ “$f”
    done

    The automator runs fine, but there is no change in the EXIF data. Is it blindly obvious what I’ve done wrong?

    Any help would be brilliant!
    Seb

  7. Sebastian says:

    Please ignore the previous comment, embarrassingly I had failed to change the pass input to ‘as argument’. A ‘nice’ guide has become a ‘wonderful’ guide :D.

    Many thanks!

  8. [...] wyżej napisał – jakiś EXIF-Tool + Automator. Poczytaj, może znajdziesz jakieś ciekawe info ExifTool and the Automator | studio.messlinger.com Komputer:  MacBook Pro 15.4-inch 2,4 GHz Telefon:  iPhone 3G 8GB -> Kanał [...]

Leave a Reply