0
Artboard size won't change in action
Community Beginner
,
/t5/illustrator-discussions/artboard-size-won-t-change-in-action/td-p/11475187
Oct 01, 2020
Oct 01, 2020
Copy link to clipboard
Copied
Does anyone know how to change artboard size in a script? I can't get any artboard changes to show up in an action. No menu commands will take effect with actions. I also tried creating a rectangle and using the object menu to fit to selected artwork but it won't record in an action. I don't know what to do?
TOPICS
Draw and design
,
Scripting
,
Tools
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
/t5/illustrator-discussions/artboard-size-won-t-change-in-action/m-p/11475491#M246528
Oct 01, 2020
Oct 01, 2020
Copy link to clipboard
Copied
Hi, This is how I do it.
var ab = app.activeDocument.artboards[0];
var l = 0, t = 0, r = 100, b = -100;
ab.artboardRect = [l,t,r,b];
– Mark
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/illustrator-discussions/artboard-size-won-t-change-in-action/m-p/11475917#M246542
Oct 01, 2020
Oct 01, 2020
Copy link to clipboard
Copied
you need to use "Insert Menu Item..." in the Actions Flyout Menu to record Menu Commands
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

