Skip to content

Instantly share code, notes, and snippets.

@harrypujols
Created June 21, 2016 18:02
Show Gist options
  • Save harrypujols/a95d1c4075dfe8b71207df22f0ae4f01 to your computer and use it in GitHub Desktop.
Save harrypujols/a95d1c4075dfe8b71207df22f0ae4f01 to your computer and use it in GitHub Desktop.
My Mac Alarm Script
tell application "iTunes"
play (track 1 of library playlist 1 whose album is "Look at Us")
-- I Got You Babe
set sound volume to 100
delay (get the (duration of the current track) - player position)
pause
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment