• 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: [Panther] Script Fast User Switching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Panther] Script Fast User Switching


  • Subject: Re: [Panther] Script Fast User Switching
  • From: Stephen Jonke <email@hidden>
  • Date: Fri, 7 Nov 2003 21:26:08 -0500

Make an applescript from this (all on one line):

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

Make sure you include two backslashes as shown.

That example takes you to the login screen. If you want to switch to a particular user make it:

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

All the credit for this goes to the author of the original (shell script) hint. See the macfixit article for more on this: <http://www.macosxhints.com/article.php?story=20031102031045417>

Steve
_______________________________________________
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: Can I bind a F Key to an AppleScript?
  • Next by Date: Re: Multi-threaded - thanks
  • Previous by thread: Re: Um.... Why was I unsubscribed?
  • Next by thread: applescript-users digest, Vol 3 #2140 - 13 msgs ( -Reply)
  • Index(es):
    • Date
    • Thread