To Call Javascript in applescript for folder automation

Hi there,

Is it possible to call the javascript file in applescript. I have wrote some functions in javascript for folder automation. That JS file need to integrate with applescript and the applescript want to run the JS file.

Any help is much appreciated!

Hi Vijay_Yukthi.

The ‘run script’ command allows you to specify “JavaScript” as the language of the script that’s run. It’s probably aimed at JXA JavaScript, but may be worth a try. Any results seem to come back as AppleScript equivants:

set JavaScriptFile to (choose file) -- Alias or file specifier.

run script JavaScriptFile in "JavaScript"