Last active
March 7, 2022 16:30
-
-
Save terdelyi/ecc3d66f39548d8f1c353998716eaed3 to your computer and use it in GitHub Desktop.
If you're watching Netflix in a browser (ex. Chrome) and you need a sleep timer this AppleScript is made for you.
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
display dialog "When do you want to sleep your computer? (in minutes)" default answer "60" | |
delay (text returned of the result) * 60 | |
tell application "Google Chrome" | |
quit | |
end tell | |
tell application "Finder" | |
sleep | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment