Copy link to clipboard
Copied
Hi Everyone,
I want to convert the PowerMath equations to ASCII in indesign document using javascript. Please help me. See below picture for more details:
Thanks,
Magesh
Hi @Mageshwaran
You can use below function on desktop version.
export_powerMath();
function export_powerMath() {
var doc = app.documents[0];
for (var i = 0; i < doc.stories.length; i++) {
try {
app.select(doc.stories[i].texts[0]);
app.menuActions.itemByID(471686).invoke();
} catch (e) {
alert("PowerMath Plug-in not installed in this machine.\ror\rMenu action ID not found.");
exit(0);
}
}
}
Copy link to clipboard
Copied
Is that plug-in scriptable? You can ask its author if it is and if it is, ask them for a manual.
Copy link to clipboard
Copied
Hi @Mageshwaran
You can use below function on desktop version.
export_powerMath();
function export_powerMath() {
var doc = app.documents[0];
for (var i = 0; i < doc.stories.length; i++) {
try {
app.select(doc.stories[i].texts[0]);
app.menuActions.itemByID(471686).invoke();
} catch (e) {
alert("PowerMath Plug-in not installed in this machine.\ror\rMenu action ID not found.");
exit(0);
}
}
}
Copy link to clipboard
Copied
Hi @SumitKumar,
Thanks for your wonderful help!
I will check and let you know if any further support to be needed.
Thanks,
Magesh