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
as well as InDesign Preference Settings (which, despite its shown status, is answered).
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;
}
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
Copy link to clipboard
Copied
Hi Ashram,
Try this.
app.autoCorrectPreferences.autoCorrect = true;
app.activeDocument.gridPreferences.baselineColor = [20,20,20];
Regards,
Chinna
Copy link to clipboard
Copied
Hi,
is it possible to change default dark green indesign preferences - composition - custom tracking/kerning?
Thanks
Copy link to clipboard
Copied
No, that's not possible.
Copy link to clipboard
Copied
Peter: it is a pity, but honestly thank you for the answer 🙂
Its Honour to meet You in community chat 🙂
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
Copy link to clipboard
Copied
as well as InDesign Preference Settings (which, despite its shown status, is answered).
Copy link to clipboard
Copied
Hi Jongware,
Now. It's working. Thanks for your valuable information.
Thanks
ASHRAM