i'm new into InDesign scripting and i need some help.
I try to set custom view options while executing Peter Kahrels "BatchConvert" script.
What i want to do:
I haven't been successful with the use of "menuActions".
When using "menuActions" i can show/hide the special characters but i cant control the state.
May someone can point me to a successful solution?
Everything you want can be scripted directly, without using menuActions, though these things aren't always straightforward:
var doc = app.activeDocument;
doc.layoutWindows.screenMode = ScreenModeOptions.previewOff;
doc.layoutWindows.activePage = doc.pages;
doc.textPreferences.showInvisibles = true;
// doc.close (SaveOptions.yes);
If you run this script in the batch converter, there's no need to save your documents in the script you call: just click "Save documents on closing". And zip up you documents so that you have a safe copy of them.
You saved me a lot of time!