Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Crop from EXIF.applescript
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
set decimalDelimiter to character 2 of (1 / 3 as string) -- This is because the string numbers needs to be localized to be converted to numbers

tell application "Capture One 12"
tell application "Capture One 23"
repeat with variantItem in (get selected variants)
try
set imagePath to (get path of (get parent image of variantItem))

-- Extract the crop area from the EXIF
set commandLine to "eval `/usr/libexec/path_helper -s`; exiftool -X -DefaultUserCrop \"" & imagePath & "\""
set commandLine to "/opt/homebrew/bin/exiftool -X -DefaultUserCrop \"" & imagePath & "\""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to you own setup. The correct approach would be to understand why eval /usr/libexec/path_helper -s; does not work on your computer.

set xmlExif to (do shell script commandLine)
tell application "System Events"
set xmlData to make new XML data with properties {name:"xmldata", text:xmlExif}
Expand Down