RE: Capturing current handler name in a string variable
RE: Capturing current handler name in a string variable
- Subject: RE: Capturing current handler name in a string variable
- From: Emmanuel <email@hidden>
- Date: Fri, 28 Dec 2001 12:17:25 +0100
At 20:39 +0100 27/12/01, Joe Kelly wrote:
>
>
I've always thought about writing an AppleScript pre-processor. I've mainly
>
thought of all the cool uses for macros and includes, but for debugging
>
purposes it would be awesome to catch an error that said "'Script doesn't
>
understand GoLive() message', -3208, File: 'automakelite.scpt' Line: 214,
>
see log for call stack."
There is something like a humble attempt of an AppleScript post-processor
in Smile (Scripter's Palette/Check and Debug/Report Scripting Anomalies). I
prefer to name it 'post' since it only works after compilation. Except in
intricate cases, it is supposed to warn the user about handlers and
variables which are not defined and other such things.
"Report Scripting Anomalies" was designed as a help for scripters, based on
a study of the most time-expensive programming errors.
Best regards,
Emmanuel