Re: Need help writing some AppleScripts!!! Please help!
Re: Need help writing some AppleScripts!!! Please help!
- Subject: Re: Need help writing some AppleScripts!!! Please help!
- From: JollyRoger <email@hidden>
- Date: Fri, 17 May 2002 08:00:04 -0500
On 5/17/2002 7:39 AM, "Jean-Baptiste Le Stang" <email@hidden>
wrote:
>
Number 1 : You should include error trapping in your script
>
>
Try
>
--here is your script
>
On error number x (where x is the number f your error)
>
-- what to do in case of error
>
end
How would error trapping help Dan accomplish any of his three goals?
Sorry to contradict you; but I would advise new script writers against using
error trapping because it can actually make it harder to determine why or
when a script fails. As a rule, new script writers should look at error
trapping as an advanced facility, and only use it when they are sure their
scripts are otherwise working as expected.
_______________________________________________
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.