samsouder / proximity-detection-scripts
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
proximity-detection-scripts / In-Range.applescript
| f3ec51be » | samsouder | 2008-11-13 | 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 | 11 | do shell script "/Users/ssouder/repos/proximity-detection-scripts/notif/bin/notif" | |
| f3ec51be » | samsouder | 2008-11-13 | 12 | -- turn off the screensaver | |
| 13 | tell application "ScreenSaverEngine" to quit | ||||
| 14 | end run | ||||
