2 Replies Latest reply: Aug 6, 2010 5:25 PM by tb0nus RSS

    Applescript to run Javascript

    tb0nus

      We use Applescript to automate funcationalty within Filemaker with File Linking to a database, but I need Applescript to "do script" for my jsx automation on files being processed.

       

      How do we key the "do Script" in Applescript?

       

      Thanks!

      Travis

        • 1. Re: Applescript to run Javascript
          Muppet Mark-QAl63s Community Member

          You will need to change the target app to suit your needs…

           

          set JavaScript to (path to desktop as text) & "Testing.jsx" as alias

          set Args_List to {}

          --

          tell application "Adobe Photoshop CS2"

          activate

          do javascript JavaScript with arguments Args_List ¬

          show debugger on runtime error

          end tell

           

          The variable 'JavaScript' will be the path to a jsx file on your system. Args_List is the information that you want pass from FMP in AppleScript it will be an arguments array. Debugger is what you want ESTK to do on error…

          • 2. Re: Applescript to run Javascript
            tb0nus Community Member

            I am so sorry for the delayed response, but Thank you very much...  this code worked very well during our testing this week.