a way to catch an error in do shell script CDM password
a way to catch an error in do shell script CDM password
- Subject: a way to catch an error in do shell script CDM password
- From: "Koshiro MITSUYA" <email@hidden>
- Date: Mon, 16 Jun 2008 02:04:50 +0900
Hi,
I am trying to get the error in "do shell script CMD password with
adminstrator privileges" when an incorrent userpassword was given. The
code is like below.
try
do shell script "ls -l /private/root/" password userpassword with
administrator privileges
on error
display dialog "Sorry, the password entered was not correct."
end try
However, it automatically runs the SecurityAgent to ask the correct
password. Is there any way to prevent to run SecurityAgent and
catch the error instead?
I would really appreciate any help or advice.
Koshiro
_______________________________________________
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