Airlock automatically locks and unlocks your Mac using your iPhone or iPod touch

I work in a busy office. Occasionally a coworker will call or knock on my door and ask for my help with something, and the two of us will go to wherever I am needed. Most of them time I get back to my office and realize that I have left my MacBook Pro unlocked. To solve this, I've tried various things: setting a "hot corner" to trigger my screensaver, which requires my password be typed, or manually switching to the login window. (Many Windows users are used to hitting the Windows key plus "L" to temporarily "logout" but Mac OS X doesn't have an equivalent feature built-in, although there are some possible work-arounds.)
The biggest problem with all of those solutions? They require me to remember to do something. Which I usually forget to do.
Enter Airlock, a preference panel which will automatically lock and unlock your Mac when it senses that your iPhone (or iPod touch) is nearby.
That might sound like magic, but it isn't, it's Bluetooth. Once your iPhone is "paired" with Airlock, it will periodically check to see if the iPhone is still "in range" (which you can adjust, using the slider shown above). That's it. You don't need to run any software on your iPhone.
I've been using Airlock for about a week, and think it is pretty much the perfect balance between security and convenience. There is even a manual login option which lets you bypass Airlock using your regular login password (handy in case your iPhone battery dies or you need to use your computer without your iPhone around, possibly because your 7 year-old son has absconded with it to play Super Monkey Ball 2 again).
Airlock will let you automatically open applications when you come into range or go out of range. The functionality is a little limited at the moment - for example, I'd like a way to automatically set my iChat status as "away" when I'm gone and "available" when I'm back. That can be accomplished if you know how to write AppleScript, but it seems like an obvious feature to build in. There are other possible uses for this I can imagine: telling Mail.app to check for mail as soon as I get back, or telling NetNewsWire to resume downloading when I walk out of the room and pause it when I get back, so it will do those functions when my computer is otherwise idle. Again, if those things are possible it would require you to know how to code them in AppleScript.
Airlock will also only "pair" with one device at a time, which can cause problems if several people use the same Mac. For example, if I lock my iMac at home with my iPhone using Airlock and my wife wants to use it, she needs to have my account password, or else she can't get into the computer (there is no way for her to access the regular login panel, which would be another big feature request). However, for the usual use-case of one person and one Mac at an office, Airlock works great.
The webpage also warns that "due to a bug in Mac OS X, Airlock may not be compatible with computers that use wireless keyboards or mice." You can use Airlock for up to three hours without registering, which I would encourage everyone to do. (You can quit it and relaunch it for another three hours also.)
Airlock also recommends making the "activation range slightly larger than it appears necessary." Wireless signal strength isn't an exact science, and interference is possible. I found that sitting across the room from my iMac at home I was much more likely to run into interference than sitting next to my MacBook Pro at my desk at the office.
The dot shows you where your iPhone is located in proximity to Airlock. You can also adjust how often Airlock checks for your iPhone's presence. Checking more often will secure your Mac faster, but will increase the drain on your iPhone battery. There is a slider available to change between "better battery life" and "more responsive."
Fellow TUAW-er Brett Terpstra suggested that "do it yourself" folks might be able to mimic this behavior using RedHand (€ 1.49) and Proximity (free) but added "I found absolutely no method of Bluetooth proximity detection that didn't occasionally boot me out to a lock screen at least once every few hours when I (and my fully-charged, often docked, iPhone) were sitting right next to it." While I was writing this article with my iPhone charging and hooked to my MacBook Pro, Airlock locked me out once. I toggled Bluetooth on my iPhone off/on and Airlock unlocked.
It's not foolproof, but Airlock is one of those great little gems which solves a problem simply and easily, making life a little easier. I hope to see a few improvements (and hope that Mac OS X bug gets fixed for those who use wireless keyboards and mice) but for me it was money I was happy to spend for a little convenience, and so far the "false positives" haven't happened often enough to bother me, especially since I'm not having to log into my MacBook Pro all day long.
Airlock licenses are US$7.77 which allows you to use Airlock on up to three Macs. As mentioned above, you can download and test it for free for up to three hours per launch.
Share
Source: http://themha.com/airlock/
Categories
I work in a busy office. Occasionally a coworker will call or knock on my door and ask for my help with something, and the two of us will...
Add a Comment
Works great for me. Had a little hiccup early but had great support for such a low priced app.
December 22 2009 at 10:07 AM Report abuse Permalink rate up rate down ReplyI tried the demo for a while but I, too, had problems with it not unlocking when I was sitting at the computer. Having been (and still am) a long time Windows user, I was very accustomed to Windows-L to lock the computer. I now use LockTight on the mac and assigned Command-Alt-L as the hot key combo. It works great!
December 23 2009 at 11:53 PM Report abuse Permalink rate up rate down ReplyFor those interested, I have proximity fully activated with the 2 applescripts. In fact, my battery life is amazing, despite what I thought it would be. A full charge on my iPhone lasts me roughly 3-4 days with my regular use. For example, in the morning today I had 88% charge. Roughly 12 hours later and with some serious Skype use via Wifi, I'm at 66% and the BT has been on the entire time!!!
Also, here are updated applescripts that do NOT require you to explicitly include your PASSWORD in the applescript, which is a pretty big security hole. Keep in mind that I'm running 10.5.8 and not 10.6 (I think there is an issue in SL that prevents these scripts from changing Sys Pref password setting).
inrange script:
--
tell application "iTunes" to play
tell application "System Events"
tell security preferences
set require password to wake to false
end tell
end tell
quit application "ScreenSaverEngine"
activate application "Mail" --this is so that Mail is frontmost when I come back
--
_____________________________
outofrange script:
--
tell application "iTunes" to pause
tell application "System Events"
tell security preferences
set require password to wake to true
end tell
end tell
-- start screensaver (which locks the screen)
activate application "ScreenSaverEngine"
--
__________________________
Save ur money as this Airlock is pretty bloated and seems to drain the battery unnecessarily. Some report that even other BT devices like keyboard and mice, still work along w/ Proximity, but some report sluggishness. Can't verify as I don't have these. Proximity has better pinging or something, haven't figured out it's source code, but my battery life is great!
MEch
This lasted about a week on my Macbook. I had issues with it not unlocking when the phone came into range, but worse, it kept locking the machine even with the iPhone sitting right next to it. I assume the iPhone went into some sort of power save state.
And of course, with the constant BT pinging, my iPhone battery life went from hours to minutes it seemed.
Here is a free solution:
My setup: iPhone 3GS + iMac, both had been paired using bluetooth before.
1. download proximity 1.5 for OSX: http://code.google.com/p/reduxcomputing-proximity/downloads/list
2. create 2 applescript files using 'Script Editor' (see wiki for proximity for examples)
3. or use my examples
a) inrange script:
--
tell application "iTunes"
play
end tell
-- types 'return' to activate login screen
tell application "System Events" to keystroke return
delay 1
tell application "System Events" to keystroke "urpasswordhere"
-- it types in your password for you
delay 1
tell application "System Events" to keystroke return
-- accept password and log on; this obviously needs the password option to be activated in the Screen Saver options under System Preferences
b) outrange script
--
tell application "iTunes"
pause
end tell
-- start screensaver (which locks the screen if you have password activated under Sys Pref)
activate application "ScreenSaverEngine"
--
So, when I'm in range, my music is blastin'. When I walk away from the computer with my iPhone in my pocket, my passworded screensaver comes on, music stops. Coming within the range of the computer again restarts the music and logs me in automatically. Hey TUAW. Why don't you summarize all this in your own article, and give me credit for debugging and the script for the screensaver.
BTW, this does not require an iPhone but any bluetooth activated phone.
Enjoy!
My mistake: It's control+OPTION+eject, which puts your machine to sleep. If you have your machine set to prompt for a password (I believe this is under screensaver) then it will prompt you when it wakes up. Sleep and wakeup is so fast on my machine, that this is what I've been using to lock it when I'm away from it.
December 16 2009 at 4:00 PM Report abuse Permalink rate up rate down ReplyMacLoc + Spark = win.
The login screen is also better looking than the ugly screen saver unlock dialog.
I believe control+shift+eject does effectively lock your screen if you have your screensaver set to prompt for a password.
nice, unless like me you usually forget also the iPhone on the desk :)
December 16 2009 at 2:54 PM Report abuse Permalink rate up rate down ReplyI just set my screensaver to a hot corner and throw my mouse down there when I need to leave. My settings require me to enter my password when coming back from the screen saver.
December 16 2009 at 2:53 PM Report abuse Permalink rate up rate down ReplyAirlock is nice, but it does not work reliably enough for me. Furthermore, I don't carry my iPhone all the time.
However, a solution I found very convenient is to use SizzlingKeys (free version). Its primary purpose is controlling iTunes, but there is an option to activate the screensaver in the Extras tab. I set this to Ctrl+Command+L and activate the "require password immediately after sleep or screensaver begins" option in Security preferences.
Works excellent for me.
Deals of the Day
more deals- Used Apple iPad 64GB WiFi + 3G for $240 + free shipping
- AviiQ Portable USB Charging Station with cable rack for $54 + $8 s&h
- Dual USB Car Charger Adapter for $2 + free shipping
- Skullcandy 50/50 Earbuds for $25 + free shipping
- Monster Beats by Dr. Dre iBeats Earbuds for $39 + free shipping
- USB Data Charger Cable for iPhone / iPod 3-Pack for $2 + free shipping
52 Comments