Skip to main content
dublove
Legend
Jul 23, 2025 4:06 PM UTC
Answered

How to get the current layout column spacing width? and the column spacing width of the textFrme?

Use script,

How to get the current layout column spacing width?

and the column spacing width of the text box?

 

rob day
rob dayCorrect answer
Community Expert
Jul 23, 2025 4:25 PM UTC
//marginPreferences columnsPositions returns an array of column positions:
var ca = app.activeDocument.pages[0].marginPreferences.columnsPositions;
alert("Column Array:\r" + ca)
alert("Column 1 width: " + (ca[1]+ca[2]))
alert("Column Gutter:  " + (ca[2]-ca[1]))

2 replies

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
Jul 23, 2025 4:25 PM UTC
//marginPreferences columnsPositions returns an array of column positions:
var ca = app.activeDocument.pages[0].marginPreferences.columnsPositions;
alert("Column Array:\r" + ca)
alert("Column 1 width: " + (ca[1]+ca[2]))
alert("Column Gutter:  " + (ca[2]-ca[1]))
Translate
dublove
dubloveAuthor
Legend
Jul 23, 2025 7:48 PM UTC

now I understand it.

Thank you very much.

Translate