Hey Guys!
I cant get that AppleScript to work in Automator.
It opens a Dialog, i can choose the Pictures to process, but fails at calling the exiftool shell script.
I dont get it, how to hand over the files to exiftool.
Could you guys take a look at it?
Thanks in advance!
I cant get that AppleScript to work in Automator.
It opens a Dialog, i can choose the Pictures to process, but fails at calling the exiftool shell script.
I dont get it, how to hand over the files to exiftool.
Could you guys take a look at it?
Thanks in advance!
Code:
on run {input, parameters}
set theImages to choose file with prompt "Please select some images to process:" of type {"public.image"} with multiple selections allowed
-- Update the initial progress information
set theImageCount to length of theImages
set progress total steps to theImageCount
set progress completed steps to 0
set progress description to "Processing Images..."
set progress additional description to "Preparing to process."
repeat with a from 1 to length of theImages
-- Update the progress detail
set progress additional description to "Processing image " & a & " of " & theImageCount
-- Process the image
do shell script "/usr/local/bin/exiftool -overwrite_original -IFD0:OpcodeList3= " & theImages
-- Increment the progress
set progress completed steps to a
-- Pause for demonstration purposes, so progress can be seen
delay 1
end repeat
-- Reset the progress information
set progress total steps to 0
set progress completed steps to 0
set progress description to ""
set progress additional description to ""
return input
end run