I am using Catalina. I want to create an application using Applescript which which will remove metadata from dropped image files (onto its icon) using the unix utility exiftool.
I tried the following application in Automator but the AppleScript doesn't work (doesn't remove the metadata):
on open myFiles
set bash_path_file to the POSIX path of myFiles
do shell script "/usr/local/bin/exiftool -all= " & quoted form of bash_path_file
end open
I've researched many applescripts using google search and over here but none seem to work. So I'm doing something wrong. Any help would be appreciated.