bazbax (foobarbazbax) wrote,

Office Hours

I've been getting hassled a lot at work via IM. It's important for me to be available to talk to other people that I work with, but the context shifts are killing me when I'm constantly being interrupted. So-- I've implemented "office hours" and am enforcing it by going invisible in Adium, my IM client.

First I wrote a couple of simple shell scripts:

$ cat
/usr/local/bin/growlnotify -a -m "Adium is going invisible"
/usr/bin/osascript -e 'tell application "Adium" to go invisible'

$ cat
/usr/local/bin/growlnotify -a -m "No longer invisible"
/usr/bin/osascript -e 'tell application "Adium" to go online'

growlnotify is part of Growl, a notification system for OS x. Read more in the documentation

Then I call them via cron:

$ crontab -l
# be available from 3:00pm-4:00pm
00 15 * * * bash /Users/jaybuff/bin/
00 16 * * * bash /Users/jaybuff/bin/

# be available from 6:30pm - 11:30am
30 18 * * * bash /Users/jaybuff/bin/
30 11 * * * bash /Users/jaybuff/bin/
  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.