Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Applescript - get T/B/L/R values of the margins on a page

Community Beginner ,
Mar 03, 2020 Mar 03, 2020

Hi all,

I have a simple applescript below that gets me the margin information of an InDesign page I have open.

The problem is, if I create a page and then change the margins at a later stage, the margins only ever return the original value. Is there any way to get the 'live' value of the margins actually present on the page?

 

Thanks!

 

tell application id "com.adobe.InDesign"
	tell active document
		
		tell margin preferences
			set MarginTop to top
			set MarginLeft to left
			set MarginBottom to bottom
			set MarginRight to right
		end tell
		
	end tell
	
end tell

 

TOPICS
Scripting
540
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 03, 2020 Mar 03, 2020

Hi Lucas,

margin preferences are available for application, document and page.

Right now you are looking at the preferences for document.

 

Regards,
Uwe Laubender

( ACP )

Translate
Community Expert ,
Mar 03, 2020 Mar 03, 2020

Hi Lucas,

margin preferences are available for application, document and page.

Right now you are looking at the preferences for document.

 

Regards,
Uwe Laubender

( ACP )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 04, 2020 Mar 04, 2020
LATEST

Thanks so much Laubender!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines