4 Replies Latest reply: Apr 5, 2008 10:31 AM by Király
arkling Level 1 Level 1 (20 points)
When my computer goes to sleep, or screen saver I have it set to require my login to get out of it.
But it always prefills my username is there a way to prevent it from doing this so that the authentication window just appears blank ?

MacBook Pro SR 2.4Ghz C2D, 4GB ram, GeForce 8600M GT 256MB VRAM, Mac OS X (10.5.2)
  • 1. Re: Stop pre-filling of username
    Király Level 6 Level 6 (9,475 points)
    The only way I can think of is to switch to the login window instead of using the screen saver and/or before putting your Mac to sleep.

    I wrote a little script that switches to the login window and then sleeps my Mac when I press ctrl-F13. I can share that with you if you like.
  • 2. Re: Stop pre-filling of username
    arkling Level 1 Level 1 (20 points)
    that would be great if you could do that.

    if it's an AppleScripts can you post it here ?

    Thanks
  • 3. Re: Stop pre-filling of username
    Király Level 6 Level 6 (9,475 points)
    This Terminal command switches to the login window:

    /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend

    This one sleeps your Mac:

    osascript -e 'tell application "System Events" to sleep'

    I used Automator to write my script. I used the "Run Shell Script" action, and entered the above two commands. I also added a sleep 3 command between the two, which pauses for three seconds. Then I saved the workflow as an application.

    I then used a program called Spark (search www.versiontracker.com for it) that allows one to program keystrokes to launch applications. I used it to set control-F13 to launch the Automator app.
  • 4. Re: Stop pre-filling of username
    V.K. Level 9 Level 9 (56,120 points)
    I don't understand your reasons for doing this but the following will work to bring you to the login window when you come out of a screensaver. You can compare it with Király 's solution when she posts it.

    1. Download and install [Scriptsaver|http://www.macupdate.com/info.php/id/9599].
    2. Save the following apple script somewhere:

    --------------------------------
    do shell script "/System/Library/CoreServices/Menu\ \Extras/User.menu/Contents/Resources/CGSession -suspend"

    -------------
    remove the space between backslashes between Menu and Extras in the above.

    3. Configure the scriptsaver to run your favorite screen saver and to execute the above apple script on screen saver deactivation.

    4. (Optional) Uncheck the option is security system prefs to ask for password when coming out of screen saver.