Skip to main content
Roger Breton
Legend
October 22, 2024
Question

How to force Preferences to "remember"?

  • October 22, 2024
  • 1 reply
  • 659 views

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.

This topic has been closed for replies.

1 reply

rob day
Community Expert
Community Expert
October 22, 2024

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.

rob day
Community Expert
Community Expert
October 22, 2024

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}
};   
Roger Breton
Legend
October 22, 2024

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?