5 Replies Latest reply on Jul 29, 2014 5:15 AM by Kai Rübsamen

    Baselign grid and Dcument Grid is not on

    Math Kay Level 1

      When run this script, we have to manually on with right click option on document. Please resolve this.

       

       

      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.

       

      with(myDocument.gridPreferences){

          baselineGridRelativeOption=BaselineGridRelativeOption.TOP_OF_MARGIN_OF_BASELINE_GRID_RELA TIVE_OPTION

      baselineStart = 14;

      baselineDivision = 14;

      baselineShown = true;

       

      horizontalGridlineDivision = 14;

      horizontalGridSubdivision = 5;

      verticalGridlineDivision = 14;

      verticalGridSubdivision = 5

      documentGridShown =true;

       

      }