public
Description: A set of scripts/programs to enable use of the Proximity application easily.
Homepage: http://samsouder.com
Clone URL: git://github.com/samsouder/proximity-detection-scripts.git
proximity-detection-scripts / In-Range.applescript
100644 15 lines (13 sloc) 0.493 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- In-Range.applescript
--
-- Created by Samuel Souder on 2008-11-13.
-- Copyright (c) 2008 BitLeap, LLC. All rights reserved.
--
 
on run
-- disable screensaver password requirement
do shell script "defaults -currentHost write com.apple.screensaver askForPassword -int 0"
-- update loginwindow to take that plist change
do shell script "/Users/ssouder/repos/proximity-detection-scripts/notif/bin/notif"
-- turn off the screensaver
tell application "ScreenSaverEngine" to quit
end run