I have the following in a Native AppleScript which works but I would like to pass the file name to the script.
insetad of set a to quoted form of POSIX path of (choose file) I want to pass a parm with the value for 'a' with a file path from filemaker pro 12. Then I want to return the value ScriptResult to filemaker pro.
Can someone point me in the rigtht direction?
-- get file
set a to quoted form of POSIX path of (choose file)
display dialog a
set TheScript to ""
-- set script
set TheScript to TheScript & "exiftool -CreateDate -MetadataDate " & a
-- run script
set ScriptResult to do shell script TheScript --with administrator privileges