OS X - Help a brother out
Friday, April 20th, 2007I have done some searching and research about this topic, but for some reason I just can’t connect to the info I am hunting for. So, if you could help a brother out I would really appreciate it.
One of the things that I love so much about my Mac is that it greatly reduces what I will call the “dicking around” factor of my computer. It either just works, or provides me the tools to easily make it just work. For example, I can launch my entire rails dev environment including Textmate, terminals, servers, consoles, etc. with just a few keystrokes. That probably saves me 5 minutes a day. AppleScript is very goofy, but I dig what it lets me do.
I came up with an idea for how I would like my Mac to just work, but haven’t been able to find one piece of the puzzle.
I use my computer in a couple of settings — each with their own needs:
- Work — This is where i spend most of my computing life. The tools I use at work are my RoR dev environment, a browser, and iTunes.
- School — Pretty much just a browser, and OmniOutline
- Home — A wide variety of things. I use my rails dev environment to work on side projects, office like tools for homework, my browser, photo editing software, etc.
My computer can very easily determine if I am in one of these three environments based on the network that I am attached to.
My idea is to use an AppleScript to automate getting my computer ready for the environment that I am working in. It can launch the apps I am going to need, change my power management settings, change my backgrounds, etc. However, in order for it work, it needs to trigger on when I connect to a network.
There are a lot of hooks in OS X for trigger actions on changes, but i haven’t figure this one out. Any ideas on how this could be accomplished?