I am having Indesign CS5 and CS6 in my machine, i want to run JS in CS5, how do i target the version
can any one help me on this...
@David – See page 235 of "Java Script Tools Guide CS5.pdf" for details on #target and details on "namespace" for the individual application see page 191 ("Application and namespace specifiers"):
should target CS5
should target CS5.5
should target CS6
However I had no luck with an added locale to the version name out of the ESTK:
#target indesign-7.5-de_de //Some alert: alert(app.version);
should address a German InDesign CS6 but yielded an error:
"indesign-7.5-de_de is undefined"
The following would work, but I cannot test against a second (e.g. international) version installed:
#target indesign-7.5 de_de //Some alert: alert(app.version);
However, if you double click on a script in the Scripts Panel and you are using no #target direction the targetted app should automatically be the app where the Scripts Panel belongs to.