Last active
May 13, 2025 06:43
-
-
Save lukasszz/a80a38547f530d299fdf565ff42c8a07 to your computer and use it in GitHub Desktop.
View 14 Days at Once in macOS Calendar App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# macOS Calendar: Show 14 Days in Week View | |
# Author: Łukasz Herok - [lukaszherok.com](https://lukaszherok.com) | |
echo "Closing calendar..." | |
osascript -e 'tell application "Calendar" to quit' | |
read -p "How many days in week view? [7]: " dni | |
if [[ -z "$dni" ]]; then | |
dni=7 | |
fi | |
if ! [[ "$dni" =~ ^[1-9][0-9]*$ ]]; then | |
echo "Wrong number of days. Enter a digit" | |
exit 1 | |
fi | |
defaults write com.apple.iCal n\ days\ of\ week $dni | |
echo "Running Calendar" | |
open -a Calendar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script is useful if you want to see two full weeks at once in the macOS Calendar app, instead of just the standard 7-day week view.
I use it every Monday morning to review what I didn’t finish last week and to plan my tasks for the upcoming days.