var styleFile=new File("~/Desktop/myGrid.txt"); app.activeDocument.importPerspectiveGridPreset(styleFile, "myGridPreset");