Skip to content

Instantly share code, notes, and snippets.

@lorenzejay
Last active September 22, 2022 17:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzejay/0a750f630819712e3ef11ed46e734f63 to your computer and use it in GitHub Desktop.
Save lorenzejay/0a750f630819712e3ef11ed46e734f63 to your computer and use it in GitHub Desktop.
My script that is triggered with launchd every working morning
tell application "Shortcuts" to run shortcut "MorningAutomationDNDToggler"
tell application "Calendar" to activate
tell application "zoom.us" to launch
tell application "Spotify" to launch
if application "Spotify" is running then
tell application "Spotify"
play track "spotify:track:7eTxWRSvauWm5L3FblGk2h"
end tell
end if
tell application "Google Chrome" to activate (open location "https://hashnode.com/")
tell application "Google Chrome" to activate (open location "https://calendar.google.com/calendar/u/0/r?tab=rc&pli=1")
tell application "Visual Studio Code" to activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment