• 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
Re: Question regarding errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Question regarding errors (From: "Perbix, Michael" <email@hidden>)

  • Prev by Date: Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
  • Next by Date: Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
  • Previous by thread: Question regarding errors
  • Next by thread: GUI Scripting: Change Monitor Colors
  • Index(es):
    • Date
    • Thread