Skip to content

Instantly share code, notes, and snippets.

@lukasszz
Last active May 13, 2025 06:43
Show Gist options
  • Save lukasszz/a80a38547f530d299fdf565ff42c8a07 to your computer and use it in GitHub Desktop.
Save lukasszz/a80a38547f530d299fdf565ff42c8a07 to your computer and use it in GitHub Desktop.
View 14 Days at Once in macOS Calendar App
#!/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
@lukasszz
Copy link
Author

lukasszz commented May 5, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment