• 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: Matthew Stuckwisch <email@hidden>
  • Date: Thu, 21 Nov 2002 23:09:14 -0600

Message: 13
Date: Thu, 21 Nov 2002 19:05:50 +0000
To: email@hidden
From: Charles Arthur <email@hidden>
Subject: lock the screen from the keyboard, win a prize

Hi...

noticed on OSFAQ: (specifically at
http://www.osxfaq.com/dailytips/11-2002/11-20.ws)

"he first person to send me an AppleScript that locks the screen without
having to enable password protection in the Screen Effects Preference pane
first will be awarded the Sal Soghoian Thunder Lizard Scripter Award and a
rare "Dr. Mac: The OS X Files" t-shirt. "

*Please* note that the "me" is not *me* me but a "someone else" me -
specifically Bob LeVitus at OSXFAQ (mailto:email@hidden).

My guess is that it's not possible. Though I don't have an X machine in
front of me..

Not willing to test right now since I have a few important docs open, I'm sure you could create a list of all running processes (using a form of shell script "top"), and then kill all visible ones (Finder included) (using shell script "kill"), and then extras like the Dock (/System/Library/CoreServices/Dock.app), SystemUIServer (menu bar), and a few other items, relocate the Finder (/System/Library/CoreServices/Finder.app) so it can't relaunch and then the also the NIB file for the force-quit dialog (/System/Library/CoreServices/loginwindow.app/Contents/Resources/ *.lproj/ProcessPanel.nib), and then display a modal dialog. Then, A- Finder can't restart until you've replaced it, and B- you can't force quit the script. You may also find it beneficial to remove the items from the recent items menu so no application can be run (ditto for services menu, but I haven't looked as to where they're held)

It'd require a lot of hack work, but I could see being done.

Oh yeah, the other way: you can find where the password protection is STORED for the preferences, which all he said was not to have to activate it IN the preference pane. Granted, I haven't figured out where these are stored (NOT in the ~/Library/Preferences nor any other */Preferences at least)

Or you could make an AppleScript to cause a kernel panic (AS team: is this possible?) which would technically "lock the screen" :P


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
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.

  • Prev by Date: Re: Number of days left in the month
  • Next by Date: Re: Script keeps crashing Filemaker Pro
  • Previous by thread: 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