• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: lock the screen from the keyboard, win a prize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lock the screen from the keyboard, win a prize


  • Subject: Re: lock the screen from the keyboard, win a prize
  • From: Paul Skinner <email@hidden>
  • Date: Mon, 25 Nov 2002 19:34:00 -0500

On Monday, November 25, 2002, at 05:01 PM, Philip Aker wrote:

Hey all,

I've received this trick off-list from a gentleman with a big heart. Check out the 'defaults' call with a host option (no MACS sleuthing) and another one for setting a value directly with an integer:

do shell script "defaults -currentHost write com.apple.screensaver askForPassword -integer " & val


Cheers,


Philip Aker

Excellent!

Unixy goodness. mmmm...

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


I love it when a thread works out. It's hard to imagine where this is all going to be in a year. So much to learn.
--
Paul Skinner

Mac OS X 10.2.2
AppleScript 1.9
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: lock the screen from the keyboard, win a prize
      • From: John Delacour <email@hidden>
    • Re: lock the screen from the keyboard, win a prize
      • From: Paul Skinner <email@hidden>
References: 
 >Re: lock the screen from the keyboard, win a prize (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Just screwing around
  • Next by Date: Re: Just screwing around
  • Previous by thread: Re: lock the screen from the keyboard, win a prize
  • Next by thread: Re: lock the screen from the keyboard, win a prize
  • Index(es):
    • Date
    • Thread