Highlighted

365 Artboards

Mentor ,
Nov 06, 2020

Copy link to clipboard

Copied

What's the quickest way to get 365 artboards, each named with a consecutive day of the year (e.g., January 1)?

TOPICS
How to

Views

109

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

365 Artboards

Mentor ,
Nov 06, 2020

Copy link to clipboard

Copied

What's the quickest way to get 365 artboards, each named with a consecutive day of the year (e.g., January 1)?

TOPICS
How to

Views

110

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
Nov 06, 2020 0
Adobe Community Professional ,
Nov 07, 2020

Copy link to clipboard

Copied

It should be possible to create a script for this task, but there is a fast manual way with the assistance of Apple Numbers or MS Excel. For example:

 

  1. Create a list of all months and days of a year in Numbers or Excel (takes about one minute).
  2. In Illustrator create an area type object on Artboard 1, cut it and then Edit menu > Paste on All Artboards.
  3. Select all and then Type menu > Threaded Text > Create
  4. Copy the list you created in Numbers or Excel, enter the area type object on Artboard 1, select all and then paste the clipboard.

 

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 07, 2020 0
Mentor ,
Nov 07, 2020

Copy link to clipboard

Copied

It sounds like this process will result in a text field on each artboard. I'm talking about naming each artboard so when I export each one, the filenames will be January 1, January 2, etc.

 

artboard.jpg

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 07, 2020 0
Adobe Community Professional ,
Nov 07, 2020

Copy link to clipboard

Copied

Oh, obviously I misunderstood your request. Sorry, Kris.

 

As already mentioned, this may be a case for a custom script.

 

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 07, 2020 0
Most Valuable Participant ,
Nov 07, 2020

Copy link to clipboard

Copied

Do you have a scripting knowledge base?

How big is the document (size and unit)
Does your document already contain elements?
What type of artboard layout should be used (cols and rows)?

 

Here is a sample script.

Three side notes because of the inadequate description:

- only for January till March (for testing)

- all artboards on same positon

- the existing artboard will be removed

 

 

// creates and names artboards for every day from January till March on same position
// regards pixxxelschubser 07.Nov.2020
var aDoc = app.activeDocument;
var AB_0 = aDoc.artboards[0].artboardRect;
var Jahr = [
    [31, "Januar"],
    [28, "Februar"],
    [31, "März"]
    ];

var i, ii, AB_x;
for ( i = 0; i < Jahr.length; i++ ) {
    for ( ii = 1; ii <= Jahr[i][0]; ii++ ) {
        AB_x = aDoc.artboards.add(AB_0);
        AB_x.name = Jahr[i][1] + " " + ii;
    }
}
aDoc.artboards[0].remove();

 

 

 

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 07, 2020 0
Mentor ,
Nov 07, 2020

Copy link to clipboard

Copied

I found a script that allows batch renaming of artboards, and I created an array of dates to rename the artboards from. It looks like exactly the same process as you just posted. Thanks you guys!

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 07, 2020 0
Most Valuable Participant ,
Nov 07, 2020

Copy link to clipboard

Copied

Only for interesting:

Can you show us your final document layout (the grid of artboards), please ?

And maybe the script that you found?

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 07, 2020 0
Mentor ,
Nov 07, 2020

Copy link to clipboard

Copied

Here's the script I found for batch renaming artboards, compliments of GoodJobStudios:

 

 

function artBoardName_serial() {
    var doc = app.activeDocument;
   
    for (var i = 0, l = doc.artboards.length; i < l; i++) {  
        if (doc.artboards[i].active) {
                }
                // THIS IS WHERE THE RENAMING HAPPENS
                doc.artboards[i].name = "a"+(i+1);  
            }    
    }

function renameArtBoard_MAIN() {
    if (app.documents.length == 0) {  
alert("No Open / Active Document Found");  
    } else {  
        artBoardName_serial();
    }  
}

renameArtBoard_MAIN();

 

 

Then I found a website that listed each day of the year, so I copied and pasted that into BBEdit, and used Grep to add quotation marks around each date, followed by a comma (standard array format). I added an array variable named "dates" to the code, with my huge array in it.

 

The only thing left was to replace "a"+(i+1) with dates[i]. Here's the final code:

 

 

function artBoardName_serial() {
    var doc = app.activeDocument;
    var dates = [
    	"January 1",
    	"January 2",
    	"January 3",
    	"January 4",
    	"January 5",
    	"January 6",
    	"January 7",
    	"January 8",
    	"January 9",
    	"January 10",
    	"January 11",
    	"January 12",
    	"January 13",
    	"January 14",
    	"January 15",
    	"January 16",
    	"January 17",
    	"January 18",
    	"January 19",
    	"January 20",
    	"January 21",
    	"January 22",
    	"January 23",
    	"January 24",
    	"January 25",
    	"January 26",
    	"January 27",
    	"January 28",
    	"January 29",
    	"January 30",
    	"January 31",
    	"February 1",
    	"February 2",
    	"February 3",
    	"February 4",
    	"February 5",
    	"February 6",
    	"February 7",
    	"February 8",
    	"February 9",
    	"February 10",
    	"February 11",
    	"February 12",
    	"February 13",
    	"February 14",
    	"February 15",
    	"February 16",
    	"February 17",
    	"February 18",
    	"February 19",
    	"February 20",
    	"February 21",
    	"February 22",
    	"February 23",
    	"February 24",
    	"February 25",
    	"February 26",
    	"February 27",
    	"February 28",
    	"February 29",
    	"March 1",
    	"March 2",
    	"March 3",
    	"March 4",
    	"March 5",
    	"March 6",
    	"March 7",
    	"March 8",
    	"March 9",
    	"March 10",
    	"March 11",
    	"March 12",
    	"March 13",
    	"March 14",
    	"March 15",
    	"March 16",
    	"March 17",
    	"March 18",
    	"March 19",
    	"March 20",
    	"March 21",
    	"March 22",
    	"March 23",
    	"March 24",
    	"March 25",
    	"March 26",
    	"March 27",
    	"March 28",
    	"March 29",
    	"March 30",
    	"March 31",
    	"April 1",
    	"April 2",
    	"April 3",
    	"April 4",
    	"April 5",
    	"April 6",
    	"April 7",
    	"April 8",
    	"April 9",
    	"April 10",
    	"April 11",
    	"April 12",
    	"April 13",
    	"April 14",
    	"April 15",
    	"April 16",
    	"April 17",
    	"April 18",
    	"April 19",
    	"April 20",
    	"April 21",
    	"April 22",
    	"April 23",
    	"April 24",
    	"April 25",
    	"April 26",
    	"April 27",
    	"April 28",
    	"April 29",
    	"April 30",
    	"May 1",
    	"May 2",
    	"May 3",
    	"May 4",
    	"May 5",
    	"May 6",
    	"May 7",
    	"May 8",
    	"May 9",
    	"May 10",
    	"May 11",
    	"May 12",
    	"May 13",
    	"May 14",
    	"May 15",
    	"May 16",
    	"May 17",
    	"May 18",
    	"May 19",
    	"May 20",
    	"May 21",
    	"May 22",
    	"May 23",
    	"May 24",
    	"May 25",
    	"May 26",
    	"May 27",
    	"May 28",
    	"May 29",
    	"May 30",
    	"May 31",
    	"June 1",
    	"June 2",
    	"June 3",
    	"June 4",
    	"June 5",
    	"June 6",
    	"June 7",
    	"June 8",
    	"June 9",
    	"June 10",
    	"June 11",
    	"June 12",
    	"June 13",
    	"June 14",
    	"June 15",
    	"June 16",
    	"June 17",
    	"June 18",
    	"June 19",
    	"June 20",
    	"June 21",
    	"June 22",
    	"June 23",
    	"June 24",
    	"June 25",
    	"June 26",
    	"June 27",
    	"June 28",
    	"June 29",
    	"June 30",
    	"July 1",
    	"July 2",
    	"July 3",
    	"July 4",
    	"July 5",
    	"July 6",
    	"July 7",
    	"July 8",
    	"July 9",
    	"July 10",
    	"July 11",
    	"July 12",
    	"July 13",
    	"July 14",
    	"July 15",
    	"July 16",
    	"July 17",
    	"July 18",
    	"July 19",
    	"July 20",
    	"July 21",
    	"July 22",
    	"July 23",
    	"July 24",
    	"July 25",
    	"July 26",
    	"July 27",
    	"July 28",
    	"July 29",
    	"July 30",
    	"July 31",
    	"August 1",
    	"August 2",
    	"August 3",
    	"August 4",
    	"August 5",
    	"August 6",
    	"August 7",
    	"August 8",
    	"August 9",
    	"August 10",
    	"August 11",
    	"August 12",
    	"August 13",
    	"August 14",
    	"August 15",
    	"August 16",
    	"August 17",
    	"August 18",
    	"August 19",
    	"August 20",
    	"August 21",
    	"August 22",
    	"August 23",
    	"August 24",
    	"August 25",
    	"August 26",
    	"August 27",
    	"August 28",
    	"August 29",
    	"August 30",
    	"August 31",
    	"September 1",
    	"September 2",
    	"September 3",
    	"September 4",
    	"September 5",
    	"September 6",
    	"September 7",
    	"September 8",
    	"September 9",
    	"September 10",
    	"September 11",
    	"September 12",
    	"September 13",
    	"September 14",
    	"September 15",
    	"September 16",
    	"September 17",
    	"September 18",
    	"September 19",
    	"September 20",
    	"September 21",
    	"September 22",
    	"September 23",
    	"September 24",
    	"September 25",
    	"September 26",
    	"September 27",
    	"September 28",
    	"September 29",
    	"September 30",
    	"October 1",
    	"October 2",
    	"October 3",
    	"October 4",
    	"October 5",
    	"October 6",
    	"October 7",
    	"October 8",
    	"October 9",
    	"October 10",
    	"October 11",
    	"October 12",
    	"October 13",
    	"October 14",
    	"October 15",
    	"October 16",
    	"October 17",
    	"October 18",
    	"October 19",
    	"October 20",
    	"October 21",
    	"October 22",
    	"October 23",
    	"October 24",
    	"October 25",
    	"October 26",
    	"October 27",
    	"October 28",
    	"October 29",
    	"October 30",
    	"October 31",
    	"November 1",
    	"November 2",
    	"November 3",
    	"November 4",
    	"November 5",
    	"November 6",
    	"November 7",
    	"November 8",
    	"November 9",
    	"November 10",
    	"November 11",
    	"November 12",
    	"November 13",
    	"November 14",
    	"November 15",
    	"November 16",
    	"November 17",
    	"November 18",
    	"November 19",
    	"November 20",
    	"November 21",
    	"November 22",
    	"November 23",
    	"November 24",
    	"November 25",
    	"November 26",
    	"November 27",
    	"November 28",
    	"November 29",
    	"November 30",
    	"December 1",
    	"December 2",
    	"December 3",
    	"December 4",
    	"December 5",
    	"December 6",
    	"December 7",
    	"December 8",
    	"December 9",
    	"December 10",
    	"December 11",
    	"December 12",
    	"December 13",
    	"December 14",
    	"December 15",
    	"December 16",
    	"December 17",
    	"December 18",
    	"December 19",
    	"December 20",
    	"December 21",
    	"December 22",
    	"December 23",
    	"December 24",
    	"December 25",
    	"December 26",
    	"December 27",
    	"December 28",
    	"December 29",
    	"December 30",
    	"December 31"
    ];
     
    for (var i = 0, l = doc.artboards.length; i < l; i++) {  
        if (doc.artboards[i].active) {
                }
                // THIS IS WHERE THE RENAMING HAPPENS
                doc.artboards[i].name = dates[i];  
            }    
    }

function renameArtBoard_MAIN() {
    if (app.documents.length == 0) {  
alert("No Open / Active Document Found");  
    } else {  
        artBoardName_serial();
    }  
}

renameArtBoard_MAIN();

 

And here's a snippet of my 366-artboard workspace after running the script:

 

artboards.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...
Nov 07, 2020 0
Most Valuable Participant ,
Nov 08, 2020

Copy link to clipboard

Copied

Thank you for your response.

Did you create all of the artboards manually?


But honestly - for a layout like this, I would go to InDesign and use DataMerge for that.

 

Perhaps as a book documents solution (one book per month, filename = month, pages name = day)

Easier to use and much easier to edit (for future variants)

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, 2020 0
Resources