Last active
November 26, 2015 09:42
-
-
Save kaiix/cc85f0e704f3aa25df74 to your computer and use it in GitHub Desktop.
notify time
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
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 |
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
<?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