• 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
a way to catch an error in do shell script CDM password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: a way to catch an error in do shell script CDM password
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Selvakumar N sent you a Friend Request on Yaari
  • Next by Date: Re: a way to catch an error in do shell script CDM password
  • Previous by thread: Selvakumar N sent you a Friend Request on Yaari
  • Next by thread: Re: a way to catch an error in do shell script CDM password
  • Index(es):
    • Date
    • Thread