samsouder / proximity-detection-scripts

A set of scripts/programs to enable use of the Proximity application easily.

This URL has Read+Write access

proximity-detection-scripts / In-Range.applescript
f3ec51be » samsouder 2008-11-13 Adding initial project files. 1 -- In-Range.applescript
2 --
3 -- Created by Samuel Souder on 2008-11-13.
4 -- Copyright (c) 2008 BitLeap, LLC. All rights reserved.
5 --
6
7 on run
8 -- disable screensaver password requirement
9 do shell script "defaults -currentHost write com.apple.screensaver askForPassword -int 0"
10 -- update loginwindow to take that plist change
1c2d8bb3 » samsouder 2008-11-13 - Fixed up the applescripts... 11 do shell script "/Users/ssouder/repos/proximity-detection-scripts/notif/bin/notif"
f3ec51be » samsouder 2008-11-13 Adding initial project files. 12 -- turn off the screensaver
13 tell application "ScreenSaverEngine" to quit
14 end run