Copy link to clipboard
Copied
Suppose I open Preferences > Composition to change some option.
Two minutes later, I need to change that same option back.
The first time the Preferences dialog opens, I understand I need to select the Composition tab.
But why is it that, the second time around, the Preferences dialog still opens in the "Main" tab ?
Why couldn't it "remember" my last "visit" and open in the last visited tab?
I understand it's a two edge sword.
Copy link to clipboard
Copied
Hi @Roger Breton , Like most other preferences Composition can be set for the Application, or for an individual document. If you want a default set of Composition preferences for all new documents, set your prefs with no documents open.
If you wanted to do something like set all of the open documents to the same Composition highlighting, it could be done via scripting.
Copy link to clipboard
Copied
For example this would set all of the highlighting, for all of the open documents to true, without changing the Application’s default settings:
var d = app.documents;
for (var i = 0; i < d.length; i++){
d[i].textPreferences.properties = {highlightCustomSpacing:true, highlightHjViolations:true, highlightKeeps:true, highlightSubstitutedFonts:true, highlightSubstitutedGlyphs:true}
};
Copy link to clipboard
Copied
Thank you, Mr Day, for the suggestion.
I'm sure many folks, here, will implement this code in a heartbeat.
Javascripting InDesign is so fascinating.
I wish they supported python in the future?
Copy link to clipboard
Copied
I wish they supported python in the future?
Probably not, the move is to UXP
Copy link to clipboard
Copied
Still Javascript based?