Last active
December 11, 2015 21:39
-
-
Save gkaramanis/4663615 to your computer and use it in GitHub Desktop.
Mailblink
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
tell application "Mail" | |
set unreadMail to the unread count of inbox | |
if unreadMail is not 0 then | |
set blinkscript to "blink1-tool --rgb 0,0,255 -m 500 -t 1000 --blink " & unreadMail | |
do shell script (blinkscript) | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment