Skip to main content
Participant
January 30, 2014
Question

Need help automating a few tasks in Illustrator CS5

  • January 30, 2014
  • 1 reply
  • 1526 views

Hello all,

I need help from scripting experts.

I have created a simple action which centres my artwork to the arboard. But I want to perform some more tasks as well. Can anyone please help me write a script to do these:

1. Centre artwork to the artboard

2. Resize artboard to fit artwork

3. Create a rectangle which exactly fits the artboard size and is sent to back Shift+Ctrl+]. It will be the background.

4. Apply the already copied to clipart colour to the background

5. While background is selected: Edit > Edit Colour > Recolour with Presets> 1 Colour Job > Pantone + Solid Coated

    (Which basically applies the best Pantone + Solid Coated colour to the background.

6. Delete all unused colours from swatches

6. Saving File as eps, legacy version: Illustrator 10 to the same directory

7. Export a 150 dpi png to the same directory

8. Close the file.

9. Create a shortcut to run the script.

Thanks a lot.

Mohi

This topic has been closed for replies.

1 reply

Inspiring
January 30, 2014

Welcome to the forum.

Quite a large wish list you have there for a first post.

Mohi wrote:

I need help ..... Can anyone please help me write a script to do these ...

Since you desire help, what have you accomplished, completed for 1 through 9 up to this point?

MohiAuthor
Participant
January 30, 2014

haha thanks for your response W_J_T.

The action I have created does the following:

1. Centres the artwork on the artboard

2. Creates a 2x2in rectangle.

3. Delete unused swatches

It cannot delete the unused groups from swatches.

It cannot fit the rectangle to the artboard size.

Neither can it apply the copied colour code to the rectangle. It start applying the hex code i copied while recording the action to the rectangle instead of taking the fresh code copied to the clipart.

It cannot save the file to the same directory, instead it would start overwriting the file I saved while recording the action.

I downloaded shrinkABtoFitArt_CS4.jsx script from adobe forum, it basically fits the artboard to artwork size. But I cannot run it from within the action. So it's quite useless. It's easier for me to manually fit artboard to artwork by using menu commands instead of using shrinkABtoFitArt_CS4.jsx.

Please help me.

Inspiring
January 30, 2014

Mohi wrote:

Please help me.

So you're looking for someone just to write 1 thru 9 for you?