Hi All, I’m trying to send arguments to a JavaScript file using AppleScript.
But it requires application support to run the “do javascript” condition.
I have found a code online but I don’t know how to use the code.
Please help me through this situation
Here is the online code:
my javascript file path: ~/desktop/A/testingFile.jsx
arguments {“A”, “B”, “C”} (for testing purposes)
do shell script “/usr/bin/osascript -l JavaScript /path/to/your.js arg1 arg2 arg3”
thank you