Could you please explain clearly...
This script is for Grid preference. Please see the bolded lines in script. They are true in script. But, after we run the script, we have to check(ON) the show document grid and show Baseline grid in indesign. baselineShown = true and documentGridShown =true do not make result. only If the options are are already shown in document, the grids are appearing. Please explain what is wrong in script.
var myDocument = app.activeDocument;
//Set the document measurement units to points.
myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
//Set up grid preferences.
baselineStart = 14;
baselineDivision = 14;
baselineShown = true;
horizontalGridlineDivision = 14;
horizontalGridSubdivision = 5;
verticalGridlineDivision = 14;
verticalGridSubdivision = 5
change baselineShown = true;
baselineGridShown = true;
What is your app.layoutWindows.screenMode value after script's run?
Hm, documentGridShown should work for you, as it works here too. baselineShown cannot work, because it must be baselineGridShown = true;