Hi,
Is there a way via scripting to change the reference point (top-left) of an artboard in Illustrator CS5? Furthermore, would it be possible to change the x and y values to 0 as well?
Hi,
Is there a way via scripting to change the reference point (top-left) of an artboard in Illustrator CS5? Furthermore, would it be possible to change the x and y values to 0 as well?
Whew! Actually, resolved reference point issue - but now this… is there a way to change an artboard position without changing size? I am trying:
tell application "Adobe Illustrator"
tell document 1
set artboard rectangle of artboard 1 to {0, 0, 0, 0}
end tell
end tell
But I have ~5 different artboard sizes and want to leave size alone while making position of x = 0 and y = 0. When I take out the width and height 0s I get an error:
“Adobe Illustrator got an error: Some data was the wrong type.”
You just need to do the sums. If an art board’s art board rectangle is {10, 20, 100, 200}, change it to {0, 0, 90, 180}.
Doh! Thank you!