var page=app.layoutWindows[0].activePage;
var sel0=app.layoutWindows[0].selection[0];
page.gridData.properties=sel0.parentStory.gridData.properties;
var pb=page.bounds;
var vb=sel0.visibleBounds;
var tfp=sel0.textFramePreferences;
var we=sel0.strokeWeight;
var ma=tfp.insetSpacing;
page.marginPreferences.properties={top:0,left:0,bottom:0,right:0};//16.08.05追記
page.marginPreferences.properties={
top:vb[0]-pb[0]+we+ma[0],
left:page.side==1818653800?pb[3]-vb[3]+we+ma[3]:vb[1]-pb[1]+we+ma[1],
bottom:pb[2]-vb[2]+we+ma[2],
right:page.side==1818653800?vb[1]-pb[1]+we+ma[1]:pb[3]-vb[3]+we+ma[3],
columnGutter:tfp.textColumnGutter,
columnCount:tfp.textColumnCount,
columnDirection:sel0.parentStory.storyPreferences.storyOrientation
}
プロフィール
最近の記事