Generate Calendar in Indesign

Generate Calendar in Indesign

Start by making a calendar template on a master page. Then, use Script Labels to define each part.

You have two choices: either use a text frame for the value or set up a variable.

For the text frame, just pick a Script Label like date to replace the whole content. If you want more control, label it "calendar_mix" and use {{date}} for variables (with the brackets).

Here is a list of potential values for your template. Each can serve as a Script Label name or a variable name by adding curly brackets {{name}}:

ValueDescription
dateDate of the day
date_julianDate of the day in the Julian Calendar (the Julian calendar is 13 days behind the Gregorian calendar)
dayEnglish day name
day_symbolDay as Unicode Character as in the Font : KFGQPC Arabic Symbols 01
day_fFrench day name
day_aArabic day name
monthEnglish month name
month_fFrench month name
month_aArabic month name
month_a2Another Arabic month name
month_a3Another Arabic month name
month_julianThe Julian Month
yearFour-digit year
year_2Two-digit year
year_julianFour-digit julian year
year_2_julianTwo-digit julian year
hijri_dateHijri date (Umm Alqura calculation)
hijri_monthEnglish Hijri month name (Umm Alqura calculation)
hijri_month_aArabic Hijri month name (Umm Alqura calculation)
hijri_yearFour-digit Hijri year
days_goneDays elapsed from the start of the year
days_leftDays remaining until the end of the year
weekCurrent week number
mini_monthInsert a table for the entire month and mark the current date. 

Download the Script from here (right-click then choose "save as..." to download it).

Version 1.1

Version 1.2