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

Change preference setting by script

Explorer ,
Jun 09, 2014 Jun 09, 2014

Copy link to clipboard

Copied

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

Views

1.5K

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

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).

Votes

Translate

Translate
Engaged ,
Jun 09, 2014 Jun 09, 2014

Copy link to clipboard

Copied

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;

    

}

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

Copy link to clipboard

Copied

Hi

Thanks for your code.

But I like code below model.

myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

Thanks

ASHRAM

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

Copy link to clipboard

Copied

Hi Ashram,

Try this.

app.autoCorrectPreferences.autoCorrect = true;

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

Regards,

Chinna

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

Copy link to clipboard

Copied

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

Thanks

 

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

Copy link to clipboard

Copied

No, that's not possible.

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

Copy link to clipboard

Copied

LATEST

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

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

Copy link to clipboard

Copied

ASHOK KUMAR wrote:

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

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

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

Hi Jongware,

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

Thanks

ASHRAM

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