Proximity Apple Script Question

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

  1. Elven
    Expand Collapse
    macrumors 6502a

    Elven

    Joined:
    May 13, 2008
    Location:
    UK
    #1
    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
    Expand Collapse
    macrumors regular

    richardsim7

    Joined:
    Oct 17, 2007
    #2
    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

    -Rich-
     

Share This Page