I am using C1 v11 and trying to change EXIF for images I scanned from film.
What I want to do is change make/model and lens EXIF.
I produced this from bits and pieces I found on the web (see code below), but it doesn't seem to execute. I get error -10004. Can someone point me in the right direction as to what I am doing wrong.
Also (2nd question) if I want to change date/time, how would be the best way to proceed?
Any help greatly appreciated! Thanks in advance...
- Code: Select all
set DefMake to "Pentax"
set theRespondedMake to the text returned of ¬
(display dialog ¬
"What's the camera make?" default answer DefMake ¬
with icon note buttons {"Cancel", "Continue"} default button "Continue")
set DefModel to "MX"
set theRespondedModel to the text returned of ¬
(display dialog ¬
"What's the camera model?" default answer DefModel ¬
with icon note buttons {"Cancel", "Continue"} default button "Continue")
set DefLens to "SMC"
set theRespondedLens to the text returned of ¬
(display dialog ¬
"What's the lens used?" default answer DefLens ¬
with icon note buttons {"Cancel", "Continue"} default button "Continue")
set DefAperture to 1.8
set theRespondedAperture to the text returned of ¬
(display dialog ¬
"What's the aperture value?" default answer DefAperture ¬
with icon note buttons {"Cancel", "Continue"} default button "Continue")
set DefFocalLength to 50
set theRespondedFocalLength to the text returned of ¬
(display dialog ¬
"What's the focal length?" default answer DefFocalLength ¬
with icon note buttons {"Cancel", "Continue"} default button "Continue")
tell application "Capture One 11"
set selectedVariants to get selected variants
repeat with i from 1 to number of items in selectedVariants
set this_item to item i of selectedVariants
set theID to id of (parent image of this_item)
do shell script "/usr/local/bin/exiftool -overwrite_original_in_place -preserve -m " & ¬
" -Make=" & theRespondedMake & ¬
" -Model=" & theRespondedModel & ¬
" -Lens=" & theRespondedLens & ¬
" -EXIF:ApertureValue=" & theRespondedAperture & ¬
" -FocalLength=" & theRespondedFocalLength & ¬
" " & quoted form of theID
reload metadata this_item
end repeat
end tell