Proximity Apple Script Question

Discussion in 'Mac Programming' started by Elven, Feb 27, 2009.

  1. Elven macrumors 6502a


    May 13, 2008
    I am totally and utterly useless in coding. I hate it. Totally not my thing.

    I am after using Proximity to use the bluetooth in my iPhone 3G 8GB, to lock/unlock my MacBook 2.4GHZ when I leave/sit down at my desk.

    It requires two Apple scripts for this, one to lock and the other obviously to unlock.

    Any help be appreciated.
  2. richardsim7 macrumors regular


    Oct 17, 2007
    Here's the script I use, does this help? :)

    --- phone_gone script

    -- Activate the screen saver
    tell application "ScreenSaverEngine" to launch

    -- Pause iTunes
    tell application "iTunes" to pause


Share This Page