• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Convert arboards to objects

Explorer ,
Jan 15, 2017 Jan 15, 2017

Copy link to clipboard

Copied

Hi! I want to make arboards to objects to transform sizes. I don't know if I can do it... Can you help me?

Thank you!

Views

924

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 21, 2023 Jun 21, 2023

Kathryn, 

just use the default text editor on your Mac; TextEdit

Create a new document in TextEdit and choose Format > Make Plain Text

Paste the 3 lines of code and save the file on your desktop with a .js or .jsx extention.

To use it select the file in Illustrator from File > Scripts > Other Scripts

Or first copy it to your Illustrator Application folder > Presets > Your Language folder > Scripts 

to make it accessible in the File > Scripts menu.

Votes

Translate

Translate
Adobe
Community Expert ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

Which version of Illustrator are you using?

In case it's a recent version, why don't you just use the Artboard tool to change the size of your artboards?

Votes

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
community guidelines
Explorer ,
Jan 17, 2017 Jan 17, 2017

Copy link to clipboard

Copied

Hi Kurt! I'm using CC 2015 *Mac.

I'm doing some planners in different sizes and I like to use objetcs to move it or change a colour, for example.

I forgot to copy the object (rectangle) and paste it in front before convert to artboard and close the file. So I have to draw the rectangles again. I think in these cases, it would be very useful and fast if we can convert artboards to objects.

Thank you very much for your reply!

Votes

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
community guidelines
Community Expert ,
Jan 17, 2017 Jan 17, 2017

Copy link to clipboard

Copied

use this script, it will draw a rectangle the size of the active artboard.

 

var idoc = app.activeDocument;

var r = idoc.artboards[idoc.artboards.getActiveArtboardIndex()].artboardRect;

idoc.pathItems.rectangle(r[1], r[0], r[2]-r[0], r[1]-r[3]);

Votes

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
community guidelines
Explorer ,
Feb 24, 2017 Feb 24, 2017

Copy link to clipboard

Copied

I have not idea how to use script... But thanks!

Votes

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
community guidelines
Community Expert ,
Feb 24, 2017 Feb 24, 2017

Copy link to clipboard

Copied

Paste those 3 lines of code to a text file, save the file with a jsx extension. To use, go to File, Scripts, Other Scripts....and navigate to where you saved the jsx file

Votes

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
community guidelines
New Here ,
Apr 25, 2022 Apr 25, 2022

Copy link to clipboard

Copied

This is awesome! Is it also possible to cover the bleed too?

Votes

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
community guidelines
Community Expert ,
Apr 25, 2022 Apr 25, 2022

Copy link to clipboard

Copied

hmm, let me see, I'm not sure if I can get the bleed box coordinates.

Votes

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
community guidelines
Community Beginner ,
Jun 21, 2023 Jun 21, 2023

Copy link to clipboard

Copied

So, keeping in mind that I know very little about coding and even less about mac, is there a reason why this script will not work on my computer?

 

First, I was annoyed that I couldn't use notepad to export the file as you instructed, and I had to find some special program specifically for scripts on here, and then when I pasted the text and attempted to save, it kept giving this error:Screen Shot 2023-06-21 at 1.18.08 PM.png

If I switched it from applescript to javascript, it was able to save, but if I go into illustrator and run the script, it just throws this onto the screen:

Screen Shot 2023-06-21 at 1.37.43 PM.png

It doesn't do anything. If I attempt to run the script from the script program thing, it doesn't know which app to use or something, and it doesn't work that way, either. It just says this:

Screen Shot 2023-06-21 at 1.46.23 PM.png

This would be a very useful script for me.

Any help is appreciated, and I apologize for my ignorance regarding these topics.

Votes

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
community guidelines
Community Beginner ,
Jun 21, 2023 Jun 21, 2023

Copy link to clipboard

Copied

Adding larger format of last image so it is readable:

Screen Shot 2023-06-21 at 1.46.23 PM.png

Votes

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
community guidelines
Community Beginner ,
Jun 21, 2023 Jun 21, 2023

Copy link to clipboard

Copied

Oh, now it lets me click the original image to enlarge. Lovely. Not sure why it didn't do that when I clicked on it originally, before I responded to my own post with a larger version of the image. Amazing.

Votes

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
community guidelines
Community Expert ,
Jun 21, 2023 Jun 21, 2023

Copy link to clipboard

Copied

Kathryn, 

just use the default text editor on your Mac; TextEdit

Create a new document in TextEdit and choose Format > Make Plain Text

Paste the 3 lines of code and save the file on your desktop with a .js or .jsx extention.

To use it select the file in Illustrator from File > Scripts > Other Scripts

Or first copy it to your Illustrator Application folder > Presets > Your Language folder > Scripts 

to make it accessible in the File > Scripts menu.

Votes

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
community guidelines
Community Beginner ,
Aug 18, 2023 Aug 18, 2023

Copy link to clipboard

Copied

I just saw this now, because the alert went to my junk folder, but THANK YOU!

This worked perfectly!

Votes

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
community guidelines
Community Expert ,
Aug 18, 2023 Aug 18, 2023

Copy link to clipboard

Copied

LATEST

Good to hear that helped.

Votes

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
community guidelines
Explorer ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

Hi Kurt! I'm using CC 2015 *Mac.

I'm doing some planners in different sizes and I like to use objetcs to move it or change a colour, for example.

I forgot to copy the object (rectangle) and paste it in front before convert to artboard and close the file. So I have to draw the rectangles again. I think in these cases, it would be very useful and fast if we can convert artboards to objects.

Thank you very much for your reply!

Votes

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
community guidelines