Skip to main content
dublove
Legend
July 23, 2025
Answered

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

  • July 23, 2025
  • 1 reply
  • 145 views

Use script,

How to get the current layout column spacing width?

and the column spacing width of the text box?

 

Correct answer rob day
//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]))

1 reply

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
July 23, 2025
//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]))
dublove
dubloveAuthor
Legend
July 23, 2025

now I understand it.

Thank you very much.