根据各种 文档 和讨论这曾经是可能的:您需要在脚本中使用类似这样的块:
try
tell me to «event ascrgdut»
end try
tell me to doTheFunkyNewThing
该事件对应于具有未记录的 C 常量 kUpdateAEUT
的隐藏事件(请参阅 此处用于常量声明),这将强制重新加载脚本添加。
我已经编写了一个脚本附加部分,并尝试了这种加载方法,但我一点运气都没有。我只能在安装扩展后启动脚本来加载它。
有谁知道是否有办法使这项工作有效?此功能在最新的 OS X 版本中是否被禁用?我正在使用 OS X 10.6.2 FWIW。
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.
发布评论
评论(1)
您尝试过
«event ascrgdut»
吗?Have you tried
«event ascrgdut»
?