Skip to content

Instantly share code, notes, and snippets.

@kaiix
Last active November 26, 2015 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaiix/cc85f0e704f3aa25df74 to your computer and use it in GitHub Desktop.
Save kaiix/cc85f0e704f3aa25df74 to your computer and use it in GitHub Desktop.
notify time
on cuckoo()
set dateStr to time string of (current date)
set meow to POSIX path of (path to resource "meow.mp3")
display notification dateStr with title "Meow"
do shell script ("afplay " & meow)
end cuckoo
script main
cuckoo()
end script
run main
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.github.kaiix.cuckoo</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/osascript</string>
<string>/path/to/cuckoo.scptd</string>
</array>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Minute</key>
<integer>30</integer>
</dict>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment