Skip to content

Instantly share code, notes, and snippets.

View nessust's full-sized avatar

nessust

  • Spain System Health
  • Valencia
View GitHub Profile
@mh61503891
mh61503891 / sound.scpt
Created April 29, 2014 05:08
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"