I know you can say "on error -128..." (Thanks Kai) when someone
cancels an authentication (to perform a specific action), but how
do you catch FAILED authentication errors?
What's the syntax there?
Thanks,
jeremy
Use this script:
<script>
try
do shell script "ls " with administrator privileges
on error number e
display dialog e
return e
end try
</script>
enter the wrong password and get the error number:
--> -60005
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden