0 Replies Latest reply on Jan 7, 2013 3:36 AM by Roger_1

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

    Roger_1

      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