Copy link to clipboard
Copied
Hi.
I want to get saved path of current running jsx file.
Is there a way?
Thanks.
Hi, is it ok for you?
it seems `app.activeScript` or `$.fileName` is what you wanted.
#target indesign
try {
// not active in ESTK
// return script path if run from ScriptPanel
alert(app.activeScript);
}
catch(e){
alert(e);
}
// return bridgetalk if run with double clicking jsx
// return script path if run from ScriptPanel
alert($.fileName);
alert($.includePath);
thank you
mg.
Copy link to clipboard
Copied
I solved it myself.
$.includePath
Copy link to clipboard
Copied
Hi, is it ok for you?
it seems `app.activeScript` or `$.fileName` is what you wanted.
#target indesign
try {
// not active in ESTK
// return script path if run from ScriptPanel
alert(app.activeScript);
}
catch(e){
alert(e);
}
// return bridgetalk if run with double clicking jsx
// return script path if run from ScriptPanel
alert($.fileName);
alert($.includePath);
thank you
mg.
Copy link to clipboard
Copied
Your answer is a more simple way.
Thank you.