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 / Out-Of-Range.applescript
100644 14 lines (13 sloc) 0.499 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Out-Of-Range.applescript
--
-- Created by Samuel Souder on 2008-11-13.
-- Copyright (c) 2008 BitLeap, LLC. All rights reserved.
--
 
on run
-- enable screensaver password requirement
do shell script "defaults -currentHost write com.apple.screensaver askForPassword -int 1"
-- 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 activate
end run