Re: Question regarding errors
Re: Question regarding errors
- Subject: Re: Question regarding errors
- From: LE STANG Jean-Baptiste <email@hidden>
- Date: Tue, 31 Dec 2002 09:22:25 +0100
You should try usin ths 'try on error end try " structure
If you have the number of your error (shoul be somehting like (-xxxx)
then you coulddo the following :
try
--here is your script
on error errmes number errnum
if errnum is YourParticularErrorNumber then
dispaly dialog YourSpecialDialogHere
else
--what should be done else
end
end try
Jean-baptiste LE STANG
Le lundi, 30 dic 2002, ` 19:52 Europe/Paris, Perbix, Michael a icrit :
script that runs that logs a user into a wireless domain using the
Airport script included with airport software. This works fine as a
compiled executable....as long as the machine has an airport card
installed. If not I get an error...which is fine, however there is an
option to edit the script. Can I add any type of error trap to
prevent this error before it is reported. I can replace it with my
own text..like this machine does not appear to have Airport software
installed or the airport card is not responding...or something with no
okay button, but just a few second pause.
_______________________________________________
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.