Skip to content

Instantly share code, notes, and snippets.

@peterhurford
Last active May 16, 2022 22:26
Show Gist options
  • Save peterhurford/3f58606d660cd3789a193f42b2ab690f to your computer and use it in GitHub Desktop.
Save peterhurford/3f58606d660cd3789a193f42b2ab690f to your computer and use it in GitHub Desktop.
## Taskmaster - nudges you onto the most important task - by Peter Wildeford
## To install: (1) save this script as `~/bin/taskmaster.applescript`.
## (2) Use `crontab -e` and add `*/40 09-19 * * 0-5 osascript $HOME/bin/taskmaster.applescript` to your crontab
## (this will run the crontab every 40 minutes between 9am and 7pm on Mondays through Fridays - use https://crontab.guru/ to customize)
tell application "Finder"
activate
display alert "Taskmaster" message "Are you working on the most important task?" buttons ["No", "Yes"] default button 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment