Posts Tagged ‘character style’

Create Calendars Automatically in Illustrator: Version 5 (Kelso)

Tuesday, February 17th, 2009

[Editor’s note: I have updated my Calendar script to version 5. It now automatically formats the text with tab stops, date box grid, and art placeholders. Tooltips help explain the options and the script will automatically create a document if one is not open. Over 25 new features, updates, and bug fixes. Screenshots and native Illustrator template files included at end of post.

Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.]

ai cs3 logoI was asked recently if I could automate the creation of calendars in Adobe Illustrator. It turns out there are a couple script for accomplishing this in InDesign (best is from sselberg), but only pre-built templates for Illustrator. If you need a new year, you’d have to search for a new template, which is lame. New script to the rescue! Thanks go to Joyce for this suggestion.

NOTE: The script is free to download and use. There is no license fee for publication of calendars based on the script. I reserve the right in the future to start charging a fee for the script. But this version is free.

Download version 5 of Calendar Script (100 k).

To install new scripts you need to:

  • Download the binary file using “Save as”. The file contents look like gobly-gook.
  • Quit Illustrator
  • Copy the file into the Illustrator application folder’s “Presets” » “Scripts” subfolder
  • After restarting Illustrator, you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

NOTE: You will need version CS3 or CS4 of Illustrator. If you have CS or CS2, get a trial version of CS4 from Adobe. Also see posts about version 3 and version 4 of the Calendar script.

New features and bug fixes in version 5:

NEW FEATUES

  1. NEW: Tab stops supported!!! Date numbers are automatically spaced over the correct distance :) Big thanks go to N at Adobe Developer Support on this one.
  2. NEW No longer requires an open document, one will be created for you in the right page size if necessary.
  3. NEW “help” tooltips on all the wizard options (thanks John!). Tooltips are only in English now, other languages in future update.
  4. NEW Wall calendar style has grid of date boxes.
  5. NEW Wall, page, and compact calendar styles has art hole (for placement of photos, etc).
  6. NEW starting month and starting and ending year now relative to the current date (was always Jan 2009)
  7. NEW if 12-up type calendar selected, the current year’s 12 months are auto enabled
  8. NEW mini Page calendar type for making the mini calendars
  9. NEW mini Wall calendar type for making the mini calendars
  10. NEW Tabloid calendar type for big wall calendars for each month with big big numbers
  11. NEW mini Tabloid calendar type for making the mini calendars
  12. NEW Compact calendar type for calendars that are suitable for newspaper

UPDATED FEATURES

  1. UPDATE: Existing templates updated with tab stops, text sizes, other formatting
  2. UPDATE mini “business card” type calendar uses underlining for the day header, removed trailing tab, and adjusted gutter width
  3. UPDATE Page calendar type now based on letter page size with big numbers
  4. UPDATE Wall calendar type now based on tabloid page size with date numbers in corner of grid cells
  5. UPDATE Wall calendar type now auto-shrinks the text frame if a month has a short number of weeks.

BUG FIXES

  1. BUG FIX: Month lines now auto-centered
  2. BUG FIX: Leading space in month name line removed
  3. BUG FIX: Fail on selected text if it is point or path. Now creates new text frame at the same location.
  4. BUG FIX: Changing calendar size / style now sets the right day header abbreviation (shorten, letter)
  5. BUG FIX: Change of character format from month header to date in calendar page function (remove underlining)
  6. BUG: Page 12-up style calendar now the same size and style as a Page 1-up but with extra months (had been compact like). Expand or link the text frame to see additional content that is hidden at first.
  7. BUG: Abbreviation for “Jan” lacked the . period (thanks John).
  8. BUG: Custom language did not show the current settings for English (default) to edit. Now it does (disabled Holiday for now).
  9. BUG: Canceling “custom language” dialog now returns to previous language preset, not English.
  10. BUG: Enabling multi-month calendars via check box now works after choosing a single month calendar preset.
Version 6 Plans
  • Holidays and lunar phases are still not supported. Please stay tuned for version 6. What types of holidays do you want to see supported? Do you need iCal support?
  • Add multi-lingual tooltips. Refine translation of main interface for supported languages.
  • Automatically create and position the before-month and after-month mini-calendars.
  • Timeline calendar format (three linear, sequential rows of year, month, and dates)
  • Sports (game day) calendar format with support via “holiday” interface
  • Option to flowing multiple month calendars to new text blocks (via artboards in CS4+)
  • Orientation option when dealing with multiple months text blocks (horizontal, vertical, grid)
  • Any other suggestions? I’ll take a couple month breather and then return to this project.
Screenshots showing English, German, and Chinese interfaces. Also the custom language settings dialog.

There are several sizes of calendars:

  1. Tabloid calendar with larger date numbers grid (no boxes) on tabloid size 2/3rds of page.
  2. Tabloid mini 1 month that fits below the main calendar in 1/6th of tabloid size page (prior month, next month).
  3. Wall calendar with smaller dates in box grid (boxed dates) on tabloid size half-page with room for half page of art (horizontal / landscape 8.5 x 11 inch page).
  4. Wall mini 1 month calendar that fits in a date square in a wall calendar (prior month, next month).
  5. Page calendar, larger dates fill grid (no boxes) on 8.5 x 11 inch page.
  6. Page calendar, larger dates fill grid (no boxes) – 12 months at a time option.
  7. Page mini calendar, calendar that fits in a date square in a page calendar (prior month, next month).
  8. Compact calendar, 12 months small enough to fit on a single 8.5 x 11 inch page with artwork.
  9. Mini calendar, 12 months small enough to fit on a business card.

All calendars are Multi-lingual. Languages include English, Deutsch, Español, Français, 中文, 日本語, русский язык, and custom. This affects both the graphical dialog for creating the calendars and the month and day words in the calendar itself when it is created.

NOTE: While character and paragraph styles are created for each style of calendar (you can have multiple calendar types in one document), there is an error with Adobe Illustrator where you do not actually see this script-created styles until you either (a) save the document – thanks JC, or (b) switch back to the document from another (open or new) document.

SCREENSHOTS
Tabloid (1 month on tabloid 11 x 17 inch page – with artwork)
Download native Illustrator file.
Wall (1 month on tabloid 11 x 17 inch page – horizontal 8.5 x 11 inch – with artwork)
Download native Illustrator file.
Page (1 month on portrait 8.5 x 11 inch page with artwork)
Download native Illustrator file.
Compact (12 months on portrait 8.5 x 11 inch page)
Download native Illustrator file.
Mini (business card)
Download native Illustrator file.

Create Calendars Automatically in Illustrator: Version 4 (Kelso)

Thursday, January 8th, 2009

[Editor’s note: I have updated my Calendar script to version 5 on 17 February 2009. Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.

Get version 5 and read more about the changes and see new templates.

WARNING! The information below is OUT OF DATE! ]

[Editor's note: I have updated my Calendar script to version 4. I now support multiple languages and fixed a few bugs. New video helps users set up tabs and change character styles. Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.]

ai cs3 logoI was asked recently if I could automate the creation of calendars in Adobe Illustrator. It turns out there are a couple script for accomplishing this in InDesign (best is from sselberg), but only pre-built templates for Illustrator. If you need a new year, you’d have to search for a new template, which is lame. New script to the rescue! Thanks go to Joyce for this suggestion.

Download version 4 of Calendar Script (71k).

NOTE: You will need version CS3 or CS4 of Illustrator. If you have CS or CS2, get a trial version of CS4 from Adobe. Also see post about version 3 of the Calendar script.

New features and bug fixes in version 4:

  1. Multi-lingual: Languages added for English, Deutsch, Español, Français, 中文, 日本語’, русский язык, and custom. This affects both the graphical dialog for creating the calendars and the month and day words in the calendar itself when it is created.
  2. No longer need to have text frame selected, one will be created for you. If a text frame IS selected, it will be used.
  3. Added ability to easily stylize weekend (Saturday and Sunday) dates numbers (eg gray or red).
  4. Equal row spacing between months checkbox now works.
  5. Buttons for current year and month now work.
I’m waiting on Adobe to let me know how to do the tab stops. In the meantime I’ve created a better video showing how to set these manually yourself (below) and change the character styles after the calendar is created.
Holidays and lunar phases are still not supported. Please stay tuned for version 5.
Screenshots showing English, German, and Chinese interfaces. Also the custom language settings dialog.

To install new scripts you need to:

  • Quit Illustrator
  • Copy the files into the Illustrator application folder’s “Presets” » “Scripts” subfolder
  • After restarting Illustrator you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

There are several sizes of calendars:

  1. Wall calendar with smaller dates in box grid (you add the boxes).
  2. Wall mini 1 month calendar that fits in a date square in a wall calendar (prior month, next month).
  3. Page calendar, larger dates fill grid (no boxes).
  4. Page calendar, larger dates fill grid (no boxes) – 12 months at a time option.
  5. Mini calendar, 12 months small enough to fit on a business card.
Screenshots
Traditional wall calendar with boxed dates and mini calendars for prior and next month, room above for a photo or illustration (January 2009). You make your own grid and the two wall mini months. Download editable Illustrator file.
Page calendar where dates fill entire box (no lines). You make your own wall mini calendars. Download editable Illustrator file.
Mini 12 month calendar sized to fit on business card with all 12 months of the year (shown larger than life below). Download editable Illustrator file.

View video demonstration of script (click to play, 9.3 megs):

Create Calendars Automatically in Illustrator (Kelso)

Thursday, November 20th, 2008

[Editor’s note: I have updated my Calendar script to version 5 on 17 February 2009. Magicien de calendrier, Kalender-Zauberer, Mago del calendario, 日历巫术师, カレンダーの魔法使い, Чудодей календара.

Get version 5 and read more about the changes and see new templates.

WARNING! The information below is OUT OF DATE! ]

[Editor's note: Revised to add example 2009 Ai CS2 format files for download on 4 Dec. 2008.]

ai cs3 logoI was asked recently if I could automate the creation of calendars in Adobe Illustrator. It turns out there are a couple script for accomplishing this in InDesign (best is from sselberg), but only pre-built templates for Illustrator. If you need a new year, you’d have to search for a new template, which is lame. New script to the rescue! Thanks go to Joyce for this suggestion.

No, the script does not create the above calendar. Check out thumbcalendar.com.

Download version 3 of Calendar Script (33k). You will need version CS3 or CS4 of Illustrator.

Examples below for 2009.
Download Adobe Illustrator CS2 version of 2009 calendar. Use the script to build out the rest of the months.
12-up mini
| January.

To install new scripts you need to:

  • Quit Illustrator
  • Copy the files into the Illustrator application folder’s “Presets” » “Scripts” subfolder
  • After restarting Illustrator you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

View video demonstration of script (click to play, 9.3 megs):

There are several sizes of calendars:

  1. Wall calendar, large format boxed dates, 1 month fits on a page, sequential pages.
  2. Page calendar, 12 months fit on a letter sized page.
  3. Mini calendar, 12 months small enough to fit on a business card.
  4. Mini 1 month calendar that fits in a date square in a wall calendar.

Couple problems:

  1. Illustrator lacks tables, so we have to rely on tabs and other text-only options. If you want tables, use the InDesign script mentioned above.
  2. Start week on Monday or Sunday?
  3. Track holidays?
  4. JavaScript doesn’t track leap years for February days in month?!

Objectives:

  1. Create single month, full year, or range of months / years.
  2. Editable text
  3. Stylize via script font family, style, size, etc and change later via character style
  4. Option to put 6th week in 5th week line for wall-calendar style
  5. Multiple size defaults
  6. Multiple size calendars in single Illustrator document
  7. Have a GUI graphic user interface

Future Work:

  1. Use of tab stops. Now you have to redefine the paragraph style for the dayTabs.
  2. Colorize weekends, holidays
  3. Support holidays (absolute and relative)
  4. Moon phase icons?
  5. Draw day grid for wall-calendar size
  6. The • buttons for month and year are not working. They should take you to the current month / year.