Is it possible to load a new Applescript scripting addition whilst my script is running?
Posted
by jkp
on Stack Overflow
See other posts from Stack Overflow
or by jkp
Published on 2010-03-24T08:53:18Z
Indexed on
2010/03/25
0:13 UTC
Read the original article
Hit count: 310
osx
|applescript
According to various documents and discussions this used to be possible: you needed a block something like this in your script:
try
tell me to «event ascrgdut»
end try
tell me to doTheFunkyNewThing
The event corresponds to hidden event with the undocumented C constant kUpdateAEUT
(see here for the declaration of the constant) which should force the scripting additions to be reloaded.
I've written a scripting addition and played around with this method of getting it to load but I have had no luck at all. I can only make it load by starting my script after the extension has been installed.
Does anyone know if there is a way to make this work? Has this functionality been disabled in more recent OS X releases? I'm using OS X 10.6.2 FWIW.
© Stack Overflow or respective owner