tell application "Adobe InDesign CS3"
activate
set myDocument to make document
set {b, a, d, c} to bounds of page 1 of document 1
tell page 1 of myDocument
set myRectangle to make rectangle
set geometric bounds of myRectangle to {b, a, d, c}
end tell
end tell
HI,
Basically it creates a record of each coordinate and then the values from that record are telling the rectangle to make itself that size.
Hope that helps?
Thanks,
Nik
tell application "Adobe InDesign CS3"
activate
set myDocument to make document
set {b, a, d, c} to bounds of page 1 of document 1
tell page 1 of myDocument
set myRectangle to make rectangle with properties {stroke alignment:center alignment}
set geometric bounds of myRectangle to {b, a, d, c}
end tell
end tell