Re: tell app <script> to handler(a,b) doesn't work (ahem)
Re: tell app <script> to handler(a,b) doesn't work (ahem)
- Subject: Re: tell app <script> to handler(a,b) doesn't work (ahem)
- From: has <email@hidden>
- Date: Wed, 23 Oct 2002 17:42:00 +0100
christian vick wrote to himself:
>
> Has anyone better results?
>
>
Yes, I have. Christian, you shouldn't post to the list if you have not
>
tested your stuff well.
Hehe. It's an important lesson we all never learn. Welcome to the club. ;)
One tip: add extra try blocks to compensate for AS's often unhelpful and
all too anonymous error reports.
on doSomething(blah)
try
--blah blah blah
on error eMsg number eNum
error "An error occurred in doSomething (): " & eMsg number eNum
end try
end doSomething
<thinks>A great shame that AS error reports don't include tracebacks; I
can't imagine it'd be that hard to implement something along those
lines.</thinks>
(AS error handling = the red-headed stepchild of the red-headed stepchild)
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.