Highlighted

Is there a way to batch rename artboards in Illustrator CC?

Community Beginner ,
May 22, 2015

Copy link to clipboard

Copied

Is there a way to batch rename artboards in Illustrator CC?

I have 20 different artbords that i want to rename with a specific name and number!

/Pål

does this do what you are after?

modified a script I wrote to do the same with layers.

//===========================================================

//

//          Rename Artboards

//

//===========================================================

//

//          Version 0.1

//          25/5/2015

//          Qwertyfly

//

//===========================================================

var doc = app.activeDocument, abs = [];

for(var i = 0; i < doc.artboards.length; i++){

    abs.push(doc.artboards.name);

}

var w = new Window('dialog',"Artboard Name Editor");

var list = w.add('group');

list.orientation = "Column";

var head = list.add('group');

head.alignment = "left";

var p = head.add('statictext', undefined, "Prefix");

var n = head.add('statictext', [0,0,165,20], "         Artboard Name");

var s = head.add('statictext', undefined, "Suffix");

var  pre = [], nam = [], suf = [];

for(var i = 0; i < abs.length; i++){

    newLine(i,"item" + i);

}

function newLine(num,item){

    item = list.add('group');

    item.alignment = "left";

    pre[num] = item.add('checkbox', undefined,"");

    nam[num] = item.add('edittext', [0,0,200,20], abs);

    nam[num].characters = 50;

    suf[num] = item.add('checkbox', undefined, "");

}

var sep1 = list.add("panel");

sep1.alignment = ["fill","fill"];

sep1.minimumSize.height = sep1.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Prefix to add to checked artboards");

var prefix = list.add('edittext', [0,0,250,20], "");

var sep2 = list.add("panel");

sep2.alignment = ["fill","fill"];

sep2.minimumSize.height = sep2.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Suffix to add to checked artboards");

var suffix = list.add('edittext', [0,0,250,20], "");

var sep3 = list.add("panel");

sep3.alignment = ["fill","fill"];

sep3.minimumSize.height = sep3.maximumSize.height = 2;

var ButtonGroup = w.add("group");

  ButtonGroup.margins = [0,-10,0,-8];

  ButtonGroup.alignment = "right";

  var go = ButtonGroup.add ("button", undefined, "OK");

  var stop = ButtonGroup.add ("button", undefined, "Cancel");

  stop.onClick = function(){

  w.close();

  }

    go.onClick = function(){

        var validatePre = false, validateSuf = false, validateMessage = "";

        for(var i = 0; i < abs.length; i++){

            if(pre.value == true && prefix.text == ""){validatePre = true}

            if(suf.value == true && suffix.text == ""){validateSuf = true}

        }

        if(validatePre == true){validateMessage = "Artboards have been marked for Prefix, but no Prefix entered\n"}

        if(validateSuf == true){validateMessage = validateMessage + "Artboards have been marked for Suffix, but no Suffix entered"}

        if(validateMessage != ""){

            alert(validateMessage);

        }else{

            w.close();

            goTime();

        }

  }

w.show();

function goTime(){

    for(var i = 0; i < abs.length; i++){

        var na = nam.text;

        var pr = "";

        var su = "";

        if(pre.value == true){pr = prefix.text + " - "}

        if(suf.value == true){su = " - " + suffix.text}

        doc.artboards.name = pr + na + su;

    }

}

TOPICS
Scripting

Views

5.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Is there a way to batch rename artboards in Illustrator CC?

Community Beginner ,
May 22, 2015

Copy link to clipboard

Copied

Is there a way to batch rename artboards in Illustrator CC?

I have 20 different artbords that i want to rename with a specific name and number!

/Pål

does this do what you are after?

modified a script I wrote to do the same with layers.

//===========================================================

//

//          Rename Artboards

//

//===========================================================

//

//          Version 0.1

//          25/5/2015

//          Qwertyfly

//

//===========================================================

var doc = app.activeDocument, abs = [];

for(var i = 0; i < doc.artboards.length; i++){

    abs.push(doc.artboards.name);

}

var w = new Window('dialog',"Artboard Name Editor");

var list = w.add('group');

list.orientation = "Column";

var head = list.add('group');

head.alignment = "left";

var p = head.add('statictext', undefined, "Prefix");

var n = head.add('statictext', [0,0,165,20], "         Artboard Name");

var s = head.add('statictext', undefined, "Suffix");

var  pre = [], nam = [], suf = [];

for(var i = 0; i < abs.length; i++){

    newLine(i,"item" + i);

}

function newLine(num,item){

    item = list.add('group');

    item.alignment = "left";

    pre[num] = item.add('checkbox', undefined,"");

    nam[num] = item.add('edittext', [0,0,200,20], abs);

    nam[num].characters = 50;

    suf[num] = item.add('checkbox', undefined, "");

}

var sep1 = list.add("panel");

sep1.alignment = ["fill","fill"];

sep1.minimumSize.height = sep1.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Prefix to add to checked artboards");

var prefix = list.add('edittext', [0,0,250,20], "");

var sep2 = list.add("panel");

sep2.alignment = ["fill","fill"];

sep2.minimumSize.height = sep2.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Suffix to add to checked artboards");

var suffix = list.add('edittext', [0,0,250,20], "");

var sep3 = list.add("panel");

sep3.alignment = ["fill","fill"];

sep3.minimumSize.height = sep3.maximumSize.height = 2;

var ButtonGroup = w.add("group");

  ButtonGroup.margins = [0,-10,0,-8];

  ButtonGroup.alignment = "right";

  var go = ButtonGroup.add ("button", undefined, "OK");

  var stop = ButtonGroup.add ("button", undefined, "Cancel");

  stop.onClick = function(){

  w.close();

  }

    go.onClick = function(){

        var validatePre = false, validateSuf = false, validateMessage = "";

        for(var i = 0; i < abs.length; i++){

            if(pre.value == true && prefix.text == ""){validatePre = true}

            if(suf.value == true && suffix.text == ""){validateSuf = true}

        }

        if(validatePre == true){validateMessage = "Artboards have been marked for Prefix, but no Prefix entered\n"}

        if(validateSuf == true){validateMessage = validateMessage + "Artboards have been marked for Suffix, but no Suffix entered"}

        if(validateMessage != ""){

            alert(validateMessage);

        }else{

            w.close();

            goTime();

        }

  }

w.show();

function goTime(){

    for(var i = 0; i < abs.length; i++){

        var na = nam.text;

        var pr = "";

        var su = "";

        if(pre.value == true){pr = prefix.text + " - "}

        if(suf.value == true){su = " - " + suffix.text}

        doc.artboards.name = pr + na + su;

    }

}

TOPICS
Scripting

Views

5.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 22, 2015 0
Guide ,
May 24, 2015

Copy link to clipboard

Copied

does this do what you are after?

modified a script I wrote to do the same with layers.

//===========================================================

//

//          Rename Artboards

//

//===========================================================

//

//          Version 0.1

//          25/5/2015

//          Qwertyfly

//

//===========================================================

var doc = app.activeDocument, abs = [];

for(var i = 0; i < doc.artboards.length; i++){

    abs.push(doc.artboards.name);

}

var w = new Window('dialog',"Artboard Name Editor");

var list = w.add('group');

list.orientation = "Column";

var head = list.add('group');

head.alignment = "left";

var p = head.add('statictext', undefined, "Prefix");

var n = head.add('statictext', [0,0,165,20], "         Artboard Name");

var s = head.add('statictext', undefined, "Suffix");

var  pre = [], nam = [], suf = [];

for(var i = 0; i < abs.length; i++){

    newLine(i,"item" + i);

}

function newLine(num,item){

    item = list.add('group');

    item.alignment = "left";

    pre[num] = item.add('checkbox', undefined,"");

    nam[num] = item.add('edittext', [0,0,200,20], abs);

    nam[num].characters = 50;

    suf[num] = item.add('checkbox', undefined, "");

}

var sep1 = list.add("panel");

sep1.alignment = ["fill","fill"];

sep1.minimumSize.height = sep1.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Prefix to add to checked artboards");

var prefix = list.add('edittext', [0,0,250,20], "");

var sep2 = list.add("panel");

sep2.alignment = ["fill","fill"];

sep2.minimumSize.height = sep2.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Suffix to add to checked artboards");

var suffix = list.add('edittext', [0,0,250,20], "");

var sep3 = list.add("panel");

sep3.alignment = ["fill","fill"];

sep3.minimumSize.height = sep3.maximumSize.height = 2;

var ButtonGroup = w.add("group");

  ButtonGroup.margins = [0,-10,0,-8];

  ButtonGroup.alignment = "right";

  var go = ButtonGroup.add ("button", undefined, "OK");

  var stop = ButtonGroup.add ("button", undefined, "Cancel");

  stop.onClick = function(){

  w.close();

  }

    go.onClick = function(){

        var validatePre = false, validateSuf = false, validateMessage = "";

        for(var i = 0; i < abs.length; i++){

            if(pre.value == true && prefix.text == ""){validatePre = true}

            if(suf.value == true && suffix.text == ""){validateSuf = true}

        }

        if(validatePre == true){validateMessage = "Artboards have been marked for Prefix, but no Prefix entered\n"}

        if(validateSuf == true){validateMessage = validateMessage + "Artboards have been marked for Suffix, but no Suffix entered"}

        if(validateMessage != ""){

            alert(validateMessage);

        }else{

            w.close();

            goTime();

        }

  }

w.show();

function goTime(){

    for(var i = 0; i < abs.length; i++){

        var na = nam.text;

        var pr = "";

        var su = "";

        if(pre.value == true){pr = prefix.text + " - "}

        if(suf.value == true){su = " - " + suffix.text}

        doc.artboards.name = pr + na + su;

    }

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 24, 2015 3
Community Beginner ,
May 25, 2015

Copy link to clipboard

Copied

WOW!

Thanks a lot, you saved me a lot of time!

/Pål

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 25, 2015 0
Guide ,
May 25, 2015

Copy link to clipboard

Copied

Glad I could help

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 25, 2015 0
Community Beginner ,
May 29, 2015

Copy link to clipboard

Copied

Hi again Qwertyfly...

Another question!

I have so many artboards that they dont fit into the menue when I try to rename them, its impossible to scroll that menue!

Is that something you could solve?

Kind regards, Pål

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 29, 2015 0
Adobe Community Professional ,
Jun 04, 2015

Copy link to clipboard

Copied

can you post a screenshot of what you're talking about? How do you mean 'impossible' to scroll the menu?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2015 0
Community Beginner ,
Jun 04, 2015

Copy link to clipboard

Copied

Menu.jpgFullscreen.jpgHi!

I have attached two screen dumps, one of the menu and one of the whole

screen.

Hope it will make you understand.

/Pål

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2015 1
Adobe Community Professional ,
Jun 04, 2015

Copy link to clipboard

Copied

Maybe a "Paginated" view would help, wherein only 25 artboards are visible per tab.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2015 0
Adobe Community Professional ,
Jun 04, 2015

Copy link to clipboard

Copied

Is the dialog necessary? Is there a known value you want to change the artboards to all the time? Or does that change? I guess i'm not entirely sure what you want to do.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2015 0
Guide ,
Jun 04, 2015

Copy link to clipboard

Copied

‌i can add a scroll bar. But it needs quite a rework to do so.

not hard just more work. Leave it with me.

very busy right now bit will try to get back to you asap

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2015 0
Community Beginner ,
Jun 04, 2015

Copy link to clipboard

Copied

Great!

I'll wait!

Thanks a lot!

/Pål

>>> "Qwertyfly..." <forums_noreply@adobe.com> 2015-06-05 07:24 >>>

Qwertyfly... created the

discussion

"Is there a way to batch rename artboards in Illustrator CC?"

To view the discussion, visit:

https://forums.adobe.com/message/7611793#7611793

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2015 0
Guide ,
Jun 06, 2015

Copy link to clipboard

Copied

I've not done a lot of testing on it but it seems to work.

let me know if this works for you.

or if there are any problems

Don't Forget - you can set the dialog size but modifying the rows variable at the top of the script

//===========================================================

//

//          Rename Artboards

//

//===========================================================

//

//          Version 0.2

//          7/6/2015

//          Qwertyfly

//

//===========================================================

//          User set variable

var rows = 10;      // Number of visible rows.

//===========================================================

var doc = app.activeDocument, abs = [], item = [];

for(var i = 0; i < doc.artboards.length; i++){

    abs = [];

    abs = [false,doc.artboards.name,false,i];

}

var w = new Window('dialog',"Artboard Name Editor");

var list = w.add('group');

list.orientation = "Column";

var head = list.add('group');

head.alignment = "left";

var p = head.add('statictext', undefined, "Prefix");

var n = head.add('statictext', [0,0,165,20], "         Artboard Name");

var s = head.add('statictext', undefined, "Suffix");

//-----------------------------------------------------------------------------------------------------

var scrollwin = list.add('group');

scrollwin.alignChildren = "fill";

var items = scrollwin.add ("panel");

if(abs.length<rows){

    for(var i = 0; i < abs.length; i++){

        newLine(i,"item" + i);

    }

}else{

    var sbar = scrollwin.add ("scrollbar", undefined, 0, 0, abs.length-rows);

    sbar.preferredSize.width = 20;

    for(var i = 0; i < rows; i++){

        item = items.add('group');

        item.alignment = "left";

        newLine(i,item);

    }

    sbar.onChanging = function(){ //alert("sbar change");

        var start = Math.round (this.value);

        var stop = start+rows;

        var r = 0;

        for (var i = start; i < stop; i++){

            pre.value = abs[0];

            pre.label = abs[3];

            nam.text = abs[1];

            nam.label = abs[3];

            suf.value = abs[2];

            suf.label = abs[3];

            r++;

        }

    }

}

function newLine(num,item){

    pre[num] = item.add('checkbox', undefined,"");

    pre[num].value = abs[num][0];

    pre[num].label = abs[num][3];

    pre[num].onClick = function () {if(abs[this.label][0] == false){abs[this.label][0] = true}else{abs[this.label][0] = false}}

    nam[num] = item.add('edittext', [0,0,200,20]);

    nam[num].characters = 50;

    nam[num].text = abs[num][1];

    nam[num].label = abs[num][3];

    nam[num].onChange = function() {abs[this.label][1] = this.text;}

    suf[num] = item.add('checkbox', undefined, "");

    suf[num].value = abs[num][2];

    suf[num].label = abs[num][3];

    suf[num].onClick = function () {if(abs[this.label][2] == false){abs[this.label][2] = true}else{abs[this.label][2] = false}}

}

var sep1 = list.add("panel");

sep1.alignment = ["fill","fill"];

sep1.minimumSize.height = sep1.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Prefix to add to checked artboards");

var prefix = list.add('edittext', [0,0,250,20], "");

var sep2 = list.add("panel");

sep2.alignment = ["fill","fill"];

sep2.minimumSize.height = sep2.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Suffix to add to checked artboards");

var suffix = list.add('edittext', [0,0,250,20], "");

var sep3 = list.add("panel");

sep3.alignment = ["fill","fill"];

sep3.minimumSize.height = sep3.maximumSize.height = 2;

var ButtonGroup = w.add("group");

  ButtonGroup.margins = [0,-10,0,-8];

  ButtonGroup.alignment = "right";

  var go = ButtonGroup.add ("button", undefined, "OK");

  var stop = ButtonGroup.add ("button", undefined, "Cancel");

  stop.onClick = function(){

  w.close();

  }

    go.onClick = function(){

        var validatePre = false, validateSuf = false, validateMessage = "";

        for(var i = 0; i < abs.length; i++){

            if(abs[0].value == true && prefix.text == ""){validatePre = true}

            if(abs[2].value == true && suffix.text == ""){validateSuf = true}

        }

        if(validatePre == true){validateMessage = "Artboards have been marked for Prefix, but no Prefix entered\n"}

        if(validateSuf == true){validateMessage = validateMessage + "Artboards have been marked for Suffix, but no Suffix entered"}

        if(validateMessage != ""){

            alert(validateMessage);

        }else{

            w.close();

            goTime();

        }

  }

w.show();

function goTime(){

    for(var i = 0; i < abs.length; i++){

        var na = abs[1];

        var pr = "";

        var su = "";

        if(abs[0] == true){pr = prefix.text + " - "}

        if(abs[2] == true){su = " - " + suffix.text}

        doc.artboards.name = pr + na + su;

    }

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 06, 2015 1
Community Beginner ,
Jun 09, 2015

Copy link to clipboard

Copied

Hi again!

I get an error when i run this script!!!

Error_script.jpg

Kind regards, Pål

>>> "Qwertyfly..." <forums_noreply@adobe.com> 2015-06-07 08:32 >>>

Qwertyfly...  created the discussion

"Is there a way to batch rename artboards in Illustrator CC?"

To view the discussion, visit: https://forums.adobe.com/message/7616757#7616757

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2015 0
Guide ,
Jun 09, 2015

Copy link to clipboard

Copied

‌i must have had a car initiated in the main engine.

leave it with me and I'll make it work

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2015 0
Guide ,
Jun 09, 2015

Copy link to clipboard

Copied

I forgot to initiate a few of the arrays... Oops.

//===========================================================

//

//          Rename Artboards

//

//===========================================================

//

//          Version 0.2.1

//          10/6/2015

//          Qwertyfly

//

//===========================================================

//

//          ChangeLog

//

//          Version 0.2

//          -added scrollbar (needed full rework)

//

//          Version 0.2.1

//          -bug fix, forgot to initiate the "pre" "nam" & "suf" arrays.

//          -added user var for Seperators

//

//===========================================================

//          User set variable

var rows = 10;          // Number of visible rows.

var preSep = " - ";     // Seperator between Prefix and name

var sufSep = " - ";     // Seperator between name and Suffix

//===========================================================

var doc = app.activeDocument, abs = [], item = [], pre = [], nam = [], suf = [];

for(var i = 0; i < doc.artboards.length; i++){

    abs = [];

    abs = [false,doc.artboards.name,false,i];

}

var w = new Window('dialog',"Artboard Name Editor");

var list = w.add('group');

list.orientation = "Column";

var head = list.add('group');

head.alignment = "left";

var p = head.add('statictext', undefined, "Prefix");

var n = head.add('statictext', [0,0,165,20], "         Artboard Name");

var s = head.add('statictext', undefined, "Suffix");

//-----------------------------------------------------------------------------------------------------

var scrollwin = list.add('group');

scrollwin.alignChildren = "fill";

var items = scrollwin.add ("panel");

if(abs.length<rows){

    for(var i = 0; i < abs.length; i++){

        newLine(i,item);

    }

}else{

    var sbar = scrollwin.add ("scrollbar", undefined, 0, 0, abs.length-rows);

    sbar.preferredSize.width = 20;

    for(var i = 0; i < rows; i++){

        item = items.add('group');

        item.alignment = "left";

        newLine(i,item);

    }

    sbar.onChanging = function(){

        var start = Math.round (this.value);

        var stop = start+rows;

        var r = 0;

        for (var i = start; i < stop; i++){

            pre.value = abs[0];

            pre.label = abs[3];

            nam.text = abs[1];

            nam.label = abs[3];

            suf.value = abs[2];

            suf.label = abs[3];

            r++;

        }

    }

}

function newLine(num,item){

    pre[num] = item.add('checkbox', undefined,"");

    pre[num].value = abs[num][0];

    pre[num].label = abs[num][3];

    pre[num].onClick = function () {if(abs[this.label][0] == false){abs[this.label][0] = true}else{abs[this.label][0] = false}}

    nam[num] = item.add('edittext', [0,0,200,20]);

    nam[num].characters = 50;

    nam[num].text = abs[num][1];

    nam[num].label = abs[num][3];

    nam[num].onChange = function() {abs[this.label][1] = this.text;}

    suf[num] = item.add('checkbox', undefined, "");

    suf[num].value = abs[num][2];

    suf[num].label = abs[num][3];

    suf[num].onClick = function () {if(abs[this.label][2] == false){abs[this.label][2] = true}else{abs[this.label][2] = false}}

}

var sep1 = list.add("panel");

sep1.alignment = ["fill","fill"];

sep1.minimumSize.height = sep1.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Prefix to add to checked artboards");

var prefix = list.add('edittext', [0,0,250,20], "");

var sep2 = list.add("panel");

sep2.alignment = ["fill","fill"];

sep2.minimumSize.height = sep2.maximumSize.height = 2;

var prefixt = list.add('statictext', undefined, "Suffix to add to checked artboards");

var suffix = list.add('edittext', [0,0,250,20], "");

var sep3 = list.add("panel");

sep3.alignment = ["fill","fill"];

sep3.minimumSize.height = sep3.maximumSize.height = 2;

var ButtonGroup = w.add("group");

  ButtonGroup.margins = [0,-10,0,-8];

  ButtonGroup.alignment = "right";

  var go = ButtonGroup.add ("button", undefined, "OK");

  var stop = ButtonGroup.add ("button", undefined, "Cancel");

  stop.onClick = function(){

  w.close();

  }

    go.onClick = function(){

        var validatePre = false, validateSuf = false, validateMessage = "";

        for(var i = 0; i < abs.length; i++){

            if(abs[0].value == true && prefix.text == ""){validatePre = true}

            if(abs[2].value == true && suffix.text == ""){validateSuf = true}

        }

        if(validatePre == true){validateMessage = "Artboards have been marked for Prefix, but no Prefix entered\n"}

        if(validateSuf == true){validateMessage = validateMessage + "Artboards have been marked for Suffix, but no Suffix entered"}

        if(validateMessage != ""){

            alert(validateMessage);

        }else{

            w.close();

            goTime();

        }

  }

w.show();

function goTime(){

    for(var i = 0; i < abs.length; i++){

        var na = abs[1];

        var pr = "";

        var su = "";

        if(abs[0] == true){pr = prefix.text + "" + preSep}

        if(abs[2] == true){su = sufSep + "" + suffix.text}

        doc.artboards.name = pr + na + su;

    }

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2015 3
Community Beginner ,
Jun 10, 2015

Copy link to clipboard

Copied

WOW!

Thanks a lot, works perfect!

/Pål

>>> "Qwertyfly..." <forums_noreply@adobe.com> 2015-06-10 02:53 >>>

Qwertyfly... created the

discussion

"Is there a way to batch rename artboards in Illustrator CC?"

To view the discussion, visit:

https://forums.adobe.com/message/7625415#7625415

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 10, 2015 0
Guide ,
Jun 10, 2015

Copy link to clipboard

Copied

‌glad it helps you.

hope others can use it to!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 10, 2015 0
Community Beginner ,
Aug 10, 2017

Copy link to clipboard

Copied

Hello Qwertyfly! Thanks so much for making this. I was able to get the first script to work but I keep getting the "Error 21: undefined is not an object" on Line: 73 for some reason.

error.PNG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 10, 2017 0
New Here ,
Nov 08, 2017

Copy link to clipboard

Copied

Hi Qwertyfly

I'm super new with scripting and don’t know where to begin

I have multiple Illustrator artboards that are already named something like this:

icon_DataRawInfo_blue

icon_Devices_blue


I was wondering if there is a script that can find and replace a certain text in this case “blue” to “black” or whatever text it need to be found and replaced.

Any info on this is greatly appreciated. Also how do you install the script.

Thank you!


ben



Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 08, 2017 1
Adobe Community Professional ,
Apr 25, 2018

Copy link to clipboard

Copied

Hey Benny.

Welcome to the world of scripting! Always glad to see new users getting interested.

Since your question is only tangentially related to this post, it would be better for the organization of the forum if you create a new topic for this question. That will make it easier for other users to search for your issue and find help.

I'll see you there. 😃

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 25, 2018 0
New Here ,
Sep 18, 2020

Copy link to clipboard

Copied

can you fix this scrip it give me an error in illustrator 2020

Screen Shot 2020-09-18 at 1.35.44 PM.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 18, 2020 0