Hi,everyone
My ID version is CS5,I have added # targetengine "session";
I compile jsx to jsxbin, but palette disappears while running.
Everybody can tell me the reason?
thanks.
best regards
goldbridge
HI,
Are you using "activescript" in your jsxbin code?
Are you running the script from ESTK?
If so, Yes this error message will pop up...
After google it, I found a workaround given by "Dave_Saunders".
function getScriptFile() {
// This function returns the file of the active script, even when running ESTK
try {
return app.activeScript;
} catch(e) {
return File(e.fileName);
}
}
You can try it. I hope this will solve the issue.
-----------
Green4ever
If you export xml from indesign you will get what you want. If you want a particular xml elements only export the selected elements only.
In scripting you can control this by setting the xmlExportPreference.exportFromSelected = true;
Go to http://jongware.mit.edu/idcs5/pc_XMLExportPreference.html and see "exportFromSelected" for more information about this..
---------
Green4ever
North America
Europe, Middle East and Africa
Asia Pacific