Slashdot Mirror


User: blootooth

blootooth's activity in the archive.

Stories
0
Comments
28
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 28

  1. Re:Scripts to automatically lock & unlock your on Control Your Mac With Bluetooth Phone · · Score: 1

    I was thinking of the plist for the ericsson Clicker app. ~Library:Preferences:com.salling.SonyEricssonClick er.plist
    It stores the scripts as plain text...

    *dict>
    *key>AppleScript*/key>
    *string>do shell script "kill `ps axww | awk '/ScreenSaverEngine/ {print $1}' | head`"*/string>
    *key>GUID*/key>
    *string>7A69A305-48BC-11D7-9839-000393A38870*/stri ng>
    *key>Title*/key>
    *string>unlock screen*/string>
    *key>Type*/key>
    *string>AppleScriptAction*/string>
    */dict>
    *dict>
    *key>AppleScript*/key>
    *string>set previousState to do shell script "defaults -currentHost read com.apple.screensaver askForPassword "
    do shell script "defaults -currentHost write com.apple.screensaver askForPassword 1"
    tell application "ScreenSaverEngine" to run
    do shell script "defaults -currentHost write com.apple.screensaver askForPassword " & previousState

    */string>
    *key>GUID*/key>
    *string>7D9669C8-48D2-11D7-9839-000393A38870*/stri ng>
    *key>Title*/key>
    *string>lock screen*/string>
    *key>Type*/key>
    *string>AppleScriptAction*/string>
    */dict>
    */BLOCKQUOTE>

  2. Re:Scripts to automatically lock & unlock your on Control Your Mac With Bluetooth Phone · · Score: 1

    Much better than my original solution! Boom the screensaver dies! No password required!
    The following script is similar but handles multiple instances of screensaver running.

    try
    set ssInstances to do shell script "top -l1 | grep ScreenSave"
    on error number 1
    set ssInstances to {}
    end try
    set AppleScript's text item delimiters to return
    set ssInstances to (text items of ssInstances) as list
    repeat with thisInstance in ssInstances
    try
    do shell script " kill " & word 1 of thisInstance
    end try
    end repeat

  3. Scripts to automatically lock & unlock your sc on Control Your Mac With Bluetooth Phone · · Score: 5, Informative

    I have proximity locking and unlocking both running beautifully here. 10-12 second delay for either. Big wow factor around the office.

    Range on my T68i is way more than 30 feet. Maybe the author will add a range slider on the proximity tab. For unlocking you need something like Extra Suites http://www.kanzu.com/ ($10) or your prefered OSAX that can generate keystrokes. This allows you to enter text via AppleScript as if from the KB and thus unlock the screen. The 'type string' and 'type key' commands are part of Extra Suites.

    To lock the screen use this as your action.

    set previousState to do shell script "defaults -currentHost read com.apple.screensaver askForPassword "
    do shell script "defaults -currentHost write com.apple.screensaver askForPassword 1"
    tell application "ScreenSaverEngine" to run
    do shell script "defaults -currentHost write com.apple.screensaver askForPassword " & previousState

    This will not permanently alter the preference you have set in your screen effects panel.
    To unlock the screen you can use the following script. NOTE! This requires entering your user PW as plain text into the script. Use this method with caution. A person who gets access to your box could, with the appropriate tools, extract your PW from the preference pane plist and then get access to your box!
    Oh, I guess they'd already have that huh? ; )

    tell application "Extra Suites"
    type key "enter"
    delay 1
    type string "YourUserPasswordGoesHere"
    delay 1
    type key "enter"
    end tell

    Hoping this helps someone wow their boss into mac lust.