AnsweredAssumed Answered

I have the following in a Native AppleScript which works but I would like to pass the file name to...

Question asked by Roger_1 on Jan 7, 2013

Post

      

     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?
     Thanks Roger
      
     -- 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
     -- display results
     display dialog ScriptResult

Outcomes