安装我自己的 AppleScript 后,如何刷新应用程序元数据 - URL 处理程序、Web 浏览器?
我正在开发一个处理 URL 的 AppleScript。有一个命令可以重新创建 Safari 显示的列表,以更改默认 Web 浏览器。
I'm working on an AppleScript that handles URLs. There's a command one can give which re-creates the list that Safari shows to change the default web browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您已在应用程序的 Info.plist 中为文档和 URL 类型添加了适当的条目,则您应该能够使用启动服务(重新)注册该应用程序(Safari 还需要重新启动)。对于 Snow Leopard 和 Lion,终端命令为:
您还可以重置 Launch Services 数据库(请参阅 lsregister 帮助)或使用 TinkerTool 等实用程序。
If you have added the appropriate entries in your application's Info.plist for the document and URL types, you should be able to just (re)register the application with Launch Services (Safari will also need to be restarted). For Snow Leopard and Lion, the Terminal command would be:
You can also reset the Launch Services database (see the lsregister help) or use a utility such as TinkerTool.