Questions about fast user switching
Questions about fast user switching
- Subject: Questions about fast user switching
- From: Cesar <email@hidden>
- Date: Mon, 17 Nov 2003 13:04:01 +0100
I have using Panther for two weeks and one of the most interesting new
features is fast user switching, you can open toast in one session and
write a cd and in another session you can open toast and burn a dvd to
another writer at the same time.
I found this trick to fast switch betwen users in macosxhints:
#!/bin/sh
if [[ -z $1 ]]; then
  # robg note: Please enter the next two lines as one without
  # any spaces between the "/" and the "R"
  /System/Library/CoreServices/Menu\
Extras/User.menu/Contents/Resources/CGSession -suspend
else
  USERID=`id -u $1`;
  if [[ -z $USERID ]]; then
    exit -1;
  fi;
  # robg note: Please enter the next two lines as one without
  # any spaces between the "/" and the "R"
  /System/Library/CoreServices/Menu\
Extras/User.menu/Contents/Resources/CGSession -switchToUserID $USERID
fi;
But this script open a dialog for the password.
---?Anyone knows how to put the password in the command, and not need
to write manually the password in the dialog?.
---?Anyone knows how interact from one session to another f.e. open
documents in other session, or applescript applications of other
session ...(applescript, or shell)?.
Cisar Escolar
_______________________________________________
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.