At work, I often get up from my computer and forget to pause iTunes. Annoying and a problem I wanted to solve. Initially, I thought I would basically write an AppleScript that would see if Adium (my instant messaging program of choice) was set to away. If it was, check to see if iTunes was playing, and pause. In my research for that though I stumbled upon an even cooler way to solve my issue utilizing bluetooth, a little software and some AppleScript.
I came across a program called Proximity. After pairing my iPhone 4 (which is pretty much always on my person) via Bluetooth, I installed Proximity which basically runs one AppleScript when the iPhone is in range, and another when it’s out. The out-of-range script activates my screen saver, sets my Adium status to away and pauses iTunes. The in-range deactivates my screen saver and sets Adium to available (didn’t want to automatically start iTunes playing again). I just installed and set it up. We’ll see how well it works. Several people have request the app not use bluetooth range, but rather distance from the computer. That would be nice. We’ll see if distance is an issue, or if battery draw is an issue with the iPhone.
I’m always psyched to find new ways to automate repetitive tasks. This one definitely falls under that category.
Thanks to this article that educated me on this solution: Proximity Detection on the Mac
