Re: switching user using apple script
Re: switching user using apple script
- Subject: Re: switching user using apple script
- From: chinni <email@hidden>
- Date: Sun, 25 Nov 2007 21:17:28 -0700
Any one help me from this...waiting for u r replies...
On Nov 22, 2007 12:33 AM, chinni <
email@hidden> wrote:
Hi ,
I am new apple script.I would like to run apple script for fast user switch to another user and wait for 15min and again login back to current user.
The below is the script but how can i pass the other user name and passwd in the script to login and wait for 15min of time and again login back to current
user.can any one help me from this
try
try
set the_path to (((path to library folder from system domain) as Unicode text) & "CoreServices:Menu Extras:User.menu:Contents:Resources:CGSession
")
set the_path to quoted form of POSIX path of the_path
set the_arguments to " -suspend"
do shell script the_path & the_arguments
end try
delay 2
try
do shell script "pmset force -a hibernatemode 1"
ignoring application responses
--tell application "System Events" to sleep
end ignoring
end try
end try
Thanx in advance
--
Cheers,
M.Srikanth Kumar,
Phone no: +91-9866774007
--
Cheers,
M.Srikanth Kumar,
Phone no: +91-9866774007
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden