Week numbers in iCal

I can’t understand why Apple has not included week numbers in iCal. Not even as an option. Well, luckily I found a php script that generates a calendar that you can import into iCal and that way get week numbers as “whole day” events. Ugly? A bit, but it might be worth it.

I made some own modifications to the script. My version accepts 0-2 parameters denoting starting year and ending year (if specified). If neither parameter is specified, the generated calendar defaults to the current year. If only starting year is specified, the script generates the week numbers for only that year.

The script can be viewed and downloaded here. Save the file to your computer and rename it to generate_ical_week_numbers.php. Note that you need php to be able to run the script.

Usage:

$> php generate_ical_week_numbers.php [startyear] [endyear] > week_numbers.ics

Then import the file week_numbers.ics file into iCal as a new calendar. That’s it.

The original script was found here.

Advertisements

1 Comment

Filed under All software sucks, Mac

One response to “Week numbers in iCal

  1. thank you great little script!!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s