Hello all, I need some help...
I am building a series of logos — based on word strings — using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file.
Normally for one or two iterations of the process, I would not hassle with a script, but this is a mind-numbing repetitive task, and I have to make 6,000 logos!! Seems the ideal use for a script.
We have tried to work with ExtendScript Toolkit (ESTK) but we can't get our heads around how to make it do certain things, and I can't find anyone who really knows how to use ESTK correctly.
I have a MAC, so the script has to be written in Java Script or Apple Script.
Here's what I need to do:
- Execute Action: Open a Master Illustrator doc. This doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set. <pause Action>
- Run Script: Retrieve the word string from a cell in Excel worksheet (or CSV??). Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm". There are two additional charaters "tm" at the end of the word string that will be acted upon (remember these two characters for item 7 below)
- Run Script: Place this WordString into the predefined type box in the Illustrator Master doc. That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator? <pause Script>
- Execute Action: Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm <pause Action>
- Run Script: Select all caps in word string. Example: DinnerPartiestm<pause Script>
- Execute Action: Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm<pause Action>
- Run Script: Select last two letters of word string. Example: DinnerPartiestm<pause Script>
- Execute Action: Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm<pause Action>
- Run Script: Select text box. <pause Script>
- Execute Action: Apply Stylize > Drop Shadow — On contents of text box, preset DS parameters in either Appearence panel or Effect menu.
- Execute Action: File > Save As .ai document. <at Save As dialog, pause action>
- Run Script: Retrieve file name from Excel and place in Save As dialog (copy & paste?). In next column in Excel doc, same row, is a SEO-friendly file name. Example: word string is "DinnerParties"; file name (next column) is "logo-dinner-parties"
- Run Script: Select folder to save the .ai doc into. Example: Folder is "Logos AI". <pause Script>
- Execute Action: Complete Save As. Example: in Folder "Logos AI" now we have the file "logo-dinner-parties.ai"
- Execute Action [assumes that the Saved As document — logo-dinner-parties.ai — is now the active one in Illustrator]: Save for Web & Devices. Preset to PNG24/Transparent. Correct file name will NOT be in Save field. <at Save dialog, pause action>
- Run Script: Repeat retrieval process to get same file name from Excel.
- Run Script: Select new folder to save the .png doc into. Example: Folder is "Logos PNG". <pause Script>
- Execute Action: Complete Save for Web. Example: in Folder "Logos PNG" now we have the file "logo-dinner-parties.png"
- Execute Action: Close
- Repeat steps 1 though 19 until all word strings processed: Script has to know to go to next word string (next row) in Excel doc.
This is a tricky one, but there's got to be a way to automate the process... otherwise I'll go crazy doing this manually!!
IS THERE ANYBODY OUT THERE WHO CAN HELP?
Thanking you in advance for any assistance.
All the best.