Saturday, December 9, 2023
HomeAppleMaking an attempt To Run ExifTool From AppleScript In Automator

Making an attempt To Run ExifTool From AppleScript In Automator


I’ve a small AppleScript setup in Automator which does the next.

Prompts consumer to pick out a json file
Prompts consumer to pick out a folder

It’s then imagined to execute Exiftool positioned in /usr/native/bin but it surely by no means runs it.

right here is the AppleScript code I’ve in Automator

--Choose JSON File
set theFile to decide on file
set theFile to POSIX path of theFile


--Choose Folder
set theFolderPath to decide on folder
set theFolderPath to POSIX path of theFolderPath

-- Run ExifTool
set exiftool to "/usr/native/bin/exiftool -json=" & theFile & " " & theFolderPath


-- Show Dialog to see the complete command.
--After I paste the contents into terminal it really works !
show dialog exiftool

-- Run ExifTool
do shell script exiftool

The screenshot under is what I get from displaying the dialog with the complete command. If I paste this into Terminal it really works however not from inside Automator.

Can anybody see what I’m doing unsuitable please.

enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments