开发者

Is it possible to load a new Applescript scripting addition whilst my script is running?

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 t开发者_运维知识库o make this work? Has this functionality been disabled in more recent OS X releases? I'm using OS X 10.6.2 FWIW.


Have you tried «event ascrgdut»?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜