Update: Beginning with the Office for Mac 14.2.0 Update (SP2) Microsoft added week numbers to Outlook for Mac. Enable them first under Outlook menu –> Preferences… –> Calendar. They appear in either Week or Work week view next to the date range above the calendar.
Three years ago I posted a script to add week numbers to Entourage. I’ve updated that script for Outlook for Mac and made some improvements based on the comments I received. Download Add Week Numbers 3.0.
Outlook for Mac itself does not have a feature to display week numbers on its calendar. If folks would like to see this feature added then please let Microsoft know using the Send Feedback tool under the Help menu of any Office for Mac application. For now, this AppleScript works on the same premise as the original. It adds a new calendar event to each week that displays both the week number and the ordinal date (day 1-365 of the year).
This script improves on the original in a few ways:
- Most importantly, week numbering is calculated based on ISO standards for calculating week numbers.
- Users can select which day to display week numbers. This is useful in countries or work environments where Monday is typically the first day of the week or work week. It’s useful to anyone else who simply chooses to display week numbers on a different day, such as Wednesday, for easier viewing.
- Users can also select which calendar to display week numbers. Since Outlook allows for multiple calendars, I suggest creating one just for week numbers so that week numbers can be toggled on and off. More on that later.
- Dates are calculated in format MM-DD-YYYY or DD-MM-YYYY, depending on the Mac’s International settings. This should accommodate most country date formats.
- Users can customize the words “Week” and “Day” at the beginning of the script to display these words in their own languages.
To install this script select About This Menu… from the AppleScript menu in Outlook for Mac.
Click the Open Folder button in the dialog to open the Outlook Script Menu Items folder Finder.
Drag the the Add Week Numbers.scpt file to this folder to move or copy it there. The script will appear immediately in Outlook’s AppleScript menu without needing to restart.
Using Add Week Numbers
Once installed, select Add Week Numbers from Outlook’s AppleScript menu.
Enter a year and click the OK button.
Next, select a calendar to display the week numbers. What I’ve done below is create a new calendar in my Exchange account called “Display Week Numbers”. This gives me two advantages, which I’ll describe later. Select this or any other calendar and click the OK button.
Finally, select a day of the week to display the week numbers. Most folks will probably prefer to display them on the first day of the week or first day of the work week. Any day is acceptable.
In a few seconds the selected calendar will display the week days.
Using a dedicated calendar to display week numbers
Consider creating a new calendar just to display week numbers. This offers two advantages:
- The week numbers can be toggled off and on. You can display them when you want them and hide them when you don’t.
- If you add them to a dedicated Exchange calendar then they will sync to an iPhone or other iOS device where the calendar can be toggled off and on as well.
To create a dedicated calendar, first click the Calendar button in the navigation pane on the left to switch to Calendar view. Next, select either On My Computer or an Exchange account in the Navigation pane on the left. Select File menu –> New –> Folder.
This will create a new calendar under the account ready to rename. Call it something like “Display Week Numbers”.
When running the script, choose this as the calendar to display week numbers. Uncheck it to hide week numbers on the calendar.
Exchange users will notice the week numbers when viewing the calendar month and selecting the day that holds the week number event.
To hide the week numbers, click the Calendars button in the upper left corner and deselect the Display Week Numbers calendar by removing the checkmark.
Customizing for different languages
By default the script uses the English words “Week” and “Day” when displaying the week numbers and day numbers. These words can be changed to equivalent words in any other language by changing the following two lines near the beginning of the script:
-- Customize words "Week" and "Day to your language so
-- that your calendar items are more easily readable.
set languageWeek to "Week"
set languageDay to "Day"