Bluetooth Proximity Lock for Macbook

I wanted to have my macbook automatically lock and unlock based on if I am in the room or not automatically. Best way to do that I figured would be bluetooth, since I always have my phone on me, and it has bluetooth. From there I proceeded to google.

http://web.mac.com/jhollington/technocrat/The_Technocrat/Entries/2007/3/18_Bluetooth_Proximity_Detection_on_OS_X.html

Pointed me to

http://www.apple.com/downloads/macosx/system_disk_utilities/proximity.html

he also includes a script to automate syncing your phone book and such too

Another utility in my searching, is called JackSMS

http://www.macupdate.com/info.php/id/21860

JackSMS does some cool stuff like, say someone tries to access your laptop while you’re not there – the built in isight camera will take their picture and email it then, so I wanted to use JackSMS as well.

Proximity allows you to set scripts for when you arrive or when you leave, so here are the applescripts I used:

lock.scpt:

tell application "JackSMS" to set lock screen to true

unlock.scpt:

tell application "JackSMS" to set lock screen to false

courtesy of: http://www.macosxhints.com/article.php?story=2006061914363693

update: a better proximity script, copied below, courtesy of:
http://pixelignition.net/better-proximity-applescript
lock.scpt:
Show ▼

unlock.scpt:
Show ▼

Posted in code | Tagged , , , , | 2 Comments

Jimmy

So he said “She tried to call earlier, but was at dinner and didn’t have service.”

So I said, “Oh, so it was a Buffet?”

Posted in Humour | Tagged , | Leave a comment

Code test

Test

public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}
class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end
Posted in code | Tagged , , , | Leave a comment