GetMarginGuides Document Query Command

GETMARGINGUIDES Document Queries

Gets the margin guides for a master page.

getmarginguides [MASTERPAGE name]

stem/a Gets the guide information.

MASTERPAGE/s The master page name. Default=current.

Results:

stem

inside/d The inside margin.

outside/d The outside margin.

top/d The top margin.

bottom/d The bottom margin.

Examples:

getmarginguides info
say 'Inside margin:  '||info.inside
say 'Outside margin: '||info.outside
say 'Top margin:     '||info.top
say 'Bottom margin:  '||info.bottom

 

GetMarginGuides  Command Definition  url:PGScmd/getmarginguides
  created:2006-03-30 22:20:07   last updated:2006-03-30 22:20:07
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For GetMarginGuides
Dan Kilroy wrote...2006-05-03 18:44:01

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

GetMarginGuides (mparray/.INSIDE.OUTSIDE.TOP.BOTTOM [MASTERPAGE document:...-masterpage | DOCUMENT document | WINDOW document-window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

Tim Doty wrote...2006-08-08 17:00:40

A python example:

Python:

>>> print GetMarginGuides('guides', 'MasterPage', 'Default Master Page')
{'guides': {'inside': 0.5, 'top': 1.0, 'outside': 0.5, 'bottom': 1.0}, '.error': 1, '.result': 0}

An abbreviated form that assumes there will be no error:

Python:

>>> marginGuides = GetMarginGuides('stem')['stem']
>>> print marginGuides
{'inside': 0.5, 'top': 1.0, 'outside': 0.5, 'bottom': 1.0}

User Contributed Comments For GetMarginGuides