Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dlevens

macrumors newbie
Original poster
May 3, 2015
1
0
So far I have not been able to figure out the best way to do the following:

I want to take a terminal command or applescript that require parameters and put it all in automator.

I have both the terminal command and AppleScript but not sure how to put this all into automator and have it prompt me for source file an destination file.

Terminal Command
Code:
exiftool -overwrite_original_in_place -r -tagsFromFile SOURCE.JPG -a -gps:all DESTINATION.JPG

AppleScript
Code:
#!/usr/bin/env bash
lon=$(exiftool -s3 -GPSLongitude "$1")
lat=$(exiftool -s3 -GPSLatitude "$1")
exiftool -GPSLongitude="$lon" -GPSLatitude="$lat" "${@:2}"

I would like to build this so when I run the Automator Workflow it prompts me first for source file and destination file, then runs the exif command using the two parameters.

Thanks for any help you can provide.

Dennis
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.