Created
March 26, 2009 17:00
-
-
Save armagad/86202 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
osascript -e 'tell application "Skype" to quit saving no' | |
osascript -e 'tell application "TweetDeck" to quit saving no' | |
osascript -e 'tell application "Adium" to quit saving no' | |
osascript -e 'tell application "iChat" to quit saving no' | |
# The rest of these comments are a .plist you need to copy to ~/Library/LaunchAgents | |
# make sure you edit the line after /bin/bash to point to where ever you put ClosingTime.sh | |
# cd ~/Library/LaunchAgents/ | |
# launchctl load com.phreakweb.ClosingTime.plist | |
# This will run ClosingTime.sh at 6:20 every night | |
#PLIST com.phreakweb.ClosingTime BEGINS | |
# <?xml version="1.0" encoding="UTF-8"?> | |
# <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
# <plist version="1.0"> | |
# <dict> | |
# <key>Label</key> | |
# <string>closeCommunication</string> | |
# <key>ProgramArguments</key> | |
# <array> | |
# <string>/bin/bash</string> | |
# <string>~/Dropbox/Shcripts/ClosingTime.sh</string> | |
# </array> | |
# <key>StartCalendarInterval</key> | |
# <dict> | |
# <key>Hour</key> | |
# <integer>18</integer> | |
# <key>Minute</key> | |
# <integer>20</integer> | |
# </dict> | |
# </dict> | |
# </plist> | |
#END OF PLIST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment