Created
March 16, 2022 14:54
-
-
Save edersonbadeca/0dc1e6413dcce610a0afaacdcb75b0da to your computer and use it in GitHub Desktop.
Pomodoro for macbook
This file contains 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
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