Skip to content

Instantly share code, notes, and snippets.

@edersonbadeca
Created March 16, 2022 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edersonbadeca/0dc1e6413dcce610a0afaacdcb75b0da to your computer and use it in GitHub Desktop.
Save edersonbadeca/0dc1e6413dcce610a0afaacdcb75b0da to your computer and use it in GitHub Desktop.
Pomodoro for macbook
to displayError()
display dialog "The script encountered a problem."
end displayError
set rightNow to (get current date)
set hoursNow to hours of rightNow
try
repeat while true
#display dialog hoursNow
if (hoursNow > 17) then
say "You should stop work now! Be nice with you and take a beer!"
end if
say "Initializing timer. Have a nice task"
delay 1500
display notification "Times up" with title "Pomodoro has finished" subtitle "Break time"
say "times up! Have a break"
delay 300
end repeat
on error
end try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment