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

Change preference setting by script

Explorer ,
Jun 09, 2014 Jun 09, 2014

Dear All

How to change Auto correct,Grid preferences by scripts.

And also its anything possible to change all preferences by script?

Thanks

ASHRAM

TOPICS
Scripting
1.8K
Translate
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

correct answers 1 Correct answer

Community Expert , Jun 10, 2014 Jun 10, 2014

as well as InDesign Preference Settings (which, despite its shown status, is answered).

Translate
Engaged ,
Jun 09, 2014 Jun 09, 2014

Here is a script I use to set my preference for appearance of black. It runs from the startup.

#targetengine "session"

app.scriptPreferences.version = 5.0;

main();

function main(){

    var myEventListener = app.addEventListener("afterOpen", opaqueBlack, false);

   

}

///////////////////////////////////////////////

function opaqueBlack(myEvent){

    //var myDocument = myEvent.parent;

    var myDocument=app.documents[0];

myDocument.documentPreferences.overprintBlack= false;

    

}

Translate
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
Explorer ,
Jun 10, 2014 Jun 10, 2014

Hi

Thanks for your code.

But I like code below model.

myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

Thanks

ASHRAM

Translate
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 ,
Jun 10, 2014 Jun 10, 2014

Hi Ashram,

Try this.

app.autoCorrectPreferences.autoCorrect = true;

app.activeDocument.gridPreferences.baselineColor = [20,20,20];

Regards,

Chinna

Translate
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
New Here ,
Apr 19, 2023 Apr 19, 2023

Hi,
is it possible to change default dark green indesign  preferences - composition - custom tracking/kerning?

Thanks

 

Translate
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 ,
Apr 20, 2023 Apr 20, 2023

No, that's not possible.

Translate
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
New Here ,
Apr 20, 2023 Apr 20, 2023
LATEST

Peter: it is a pity, but honestly thank you for the answer   🙂
Its Honour to meet You in community chat  🙂

Translate
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 ,
Jun 10, 2014 Jun 10, 2014

ASHOK KUMAR wrote:

And also its anything possible to change all preferences by script?

This has been asked, and answered, before: Indesign Preferences

Translate
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 ,
Jun 10, 2014 Jun 10, 2014

as well as InDesign Preference Settings (which, despite its shown status, is answered).

Translate
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
Explorer ,
Jun 10, 2014 Jun 10, 2014

Hi Jongware,

Now. It's working. Thanks for your valuable information.

Thanks

ASHRAM

Translate
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