• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to force Preferences to "remember"?

Enthusiast ,
Oct 22, 2024 Oct 22, 2024

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.

TOPICS
Performance

Views

180

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2024 Oct 22, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2024 Oct 22, 2024

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}
};   

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 22, 2024 Oct 22, 2024

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2024 Oct 22, 2024

Copy link to clipboard

Copied

I wish they supported python in the future?

 

Probably not, the move is to UXP

 

https://developer.adobe.com/indesign/uxp/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 22, 2024 Oct 22, 2024

Copy link to clipboard

Copied

LATEST

Still Javascript based?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines