Skip to content

Instantly share code, notes, and snippets.

@mh61503891
Created April 29, 2014 05:08
Show Gist options
  • Save mh61503891/11391083 to your computer and use it in GitHub Desktop.
Save mh61503891/11391083 to your computer and use it in GitHub Desktop.
A script for a rule to play a sound when Mail.app receives a mail.
# Save this scripts to /Library/Application Scripts/com.apple.mail/sound.scpt
# Mail.app -> Preferences... -> Rules -> Add Rule
# if any of the following conditions are met:
# Every Message
# Perform the following actions:
# Run Apple Script sound
# -> OK
do shell script "afplay ~/Library/Sounds/Harmonic.m4a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment