Re: <<ascrut>>? Scripting Additions?
Re: <<ascrut>>? Scripting Additions?
- Subject: Re: <<ascrut>>? Scripting Additions?
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 4 Jul 2001 21:25:45 -0400
On 7/4/01, Stephen Swift (aka Burnum) commented:
About a month ago, this was discussing the underhanded way of loading SAs, I
believe. It had something to do with a cryptic command like <<ascrut>> or
something like that. Does this refresh anyone's memory? TIA
Here's the part of the thread that I assume you are interested in:
At 11:34 AM -0700 6/14/01, Christopher Nebel wrote:
AppleScript scans for scripting additions at three times: when the
system starts up, when someone opens a connection to AppleScript
(most applications that run scripts do this when they launch), and
whenever a script is compiled.
The easiest way to do the latter is to call "run script" with
something trivial, e.g., "1+1". A faster but somewhat underhanded
way to do it is to tell yourself to <<event ascrgdut>>. That's the
internal event that AppleScript uses to update scripting additions.
And in a follow-up message:
At 12:47 PM -0700 6/15/01, Christopher Nebel wrote:
No, but I did forget something. For arcane and possibly bogus reasons,
the hander will always report failure, so you have to stick it in a
"try" block and ignore the error.
Later,
Rob Jorgensen
Ohio, USA