1

Since Yosemite, the Script Editor allows using javascript.

What is the best way to execute javascript from an applescript?

My use case is an existing applescript which needs to send some parameters over to a piece of javascript code, which makes a complex calculation and returns a result to be used as part of some appplescript-powered automations.

For clarity, I'm looking for an alternative to a tell application [browser] to execute the javascript using the new native javascript support of Yosemite, NOT for an alternative to a do shell script.

  • Can you please add your Applescript – markhunte Jan 20 '15 at 18:08
  • @patrix - as I noted in a flag this is not a duplicate - I should note have voted for closure - They are the different calling one JS from AS and the other an executable from JS – user151019 Jan 20 '15 at 22:38

You must log in to answer this question.

Browse other questions tagged .