How to Pass Arguments to JavaScript File Using AppleScript

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

What exactly is the problem with your approach? Do you get an error message?
Also, it would be nice to include code in the backticks like so
code goes here
That enables highlighting and easy copying.