Skip to content

Instantly share code, notes, and snippets.

@armagad
Created March 26, 2009 17:00
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 armagad/86202 to your computer and use it in GitHub Desktop.
Save armagad/86202 to your computer and use it in GitHub Desktop.
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