how can i execute .jsx file without using Extenedscript Toolkit?

Copy link to clipboard
Copied
I just want to know how can i execute the function in .jsx file , not using Extenedscript Toolkit or not in the Indesign..
can i run the script with other applications or web pages ?
Copy link to clipboard
Copied
Sure, you can use Photoshop!
I think you are very confused.
.jsx files implement ExtendScript, an extension of JavaScript that is only available in Adobe products like the Creative Suite and the ExtendScript Toolkit (ESTK). Most such scripts directly access the object model associated with one of those applications, so while theoretically you could run them in another application, in practice you cannot.
I guess the short answer you're looking for is No. But tell us more about what you want to do, please. I suppose you could use VBScript or COM+ or whatever from your other Javascript environment to tell InDesign to execute ExtendScript.

Copy link to clipboard
Copied
thank you for your answer..
If your answer is no...i have to change my plan..just play the script in [Indesign]
(i thought automatically run the script for making output file from templete file with data files..in the Java Application)
Copy link to clipboard
Copied
Java has very little to do with JavaScript.
What OS?
It probably possible for you to trigger InDesign to run your .jsx file from an external application, if that is your goal.
Copy link to clipboard
Copied
sprin9 wrote:
[...] (i thought automatically run the script for making output file from templete file with data files..in the Java Application)
It's not Javascript that works with InDesign files, it's InDesign-the-application. A script can only hand over its commands to InDesign (and so this needs to be running). Don't confuse between a scripting language and its environment.
Also, do not make the mistake of confusing Java with Javascript. They are two very distinct different programming languages. "Abbreviating" Javascript to just "Java" is wrong, just as abbreviating "InDesign" to just "in" would be.
Copy link to clipboard
Copied
Hi,
How to run .jsx file through core java?
Copy link to clipboard
Copied
Cenchen, your question does not really make sense.
Java is not Javascript.
What do you mean by "core java"?
Can you please give us a clear example so we can understand your question?
Copy link to clipboard
Copied
How to call .jsx(Adobe javascript) file through java?
Copy link to clipboard
Copied

