set myBox to make rectangle with properties {geometric bounds:{0.0, 0.0, 11, 8.5}, stroke weight:"0", stroke color:none}
and I get a box with a 1 point rule around it, originally it was black, but now the line is red. It seems like whatever state I left indesign in before I ran this script, it’s picking up those settings.
What’s the best way to “reset” the color of lines and fills, etc? before actually making a rectangle.
ALSO… what’s the best way for me to show screen captures, or jpgs of my results on here since I can’t attach a graphic to these posts?
that really doesn’t explain anything for me. Maybe i’m dense.
Here’s what I tried…
tell page 2 of document 1
set anchored object settings of document 1 to {anchor point:center anchor}
set geometric bounds of MyDup to {0, 8.5, 2.5, 11.125}
move MyDup to {11.5, 5.5}
set rotation angle of MyDup to 180
end tell
This works to set the stroke color to “None” in IDCS4:
tell application “Adobe InDesign CS4”
tell document 1
tell page 1
set myBox to make rectangle with properties {geometric bounds:{0.0, 0.0, 200, 500}, stroke weight:“0”, stroke color:“None”}
–return properties of myBox
end tell
end tell
end tell
tell application "Adobe InDesign CS5.5"
activate
tell document 1
tell page 1
set myBox to make rectangle with properties {geometric bounds:{0.0, 0.0, 11, 8.5}, stroke weight:0, fill color:"None", stroke color:"None"}
end tell
end tell
end tell