安装我自己的 AppleScript 后,如何刷新应用程序元数据 - URL 处理程序、Web 浏览器?

发布于 2024-12-28 17:37:37 字数 74 浏览 1 评论 0原文

我正在开发一个处理 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吐个泡泡 2025-01-04 17:37:37

如果您已在应用程序的 Info.plist 中为文档和 URL 类型添加了适当的条目,则您应该能够使用启动服务(重新)注册该应用程序(Safari 还需要重新启动)。对于 Snow Leopard 和 Lion,终端命令为:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /path/to/your/app

您还可以重置 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:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /path/to/your/app

You can also reset the Launch Services database (see the lsregister help) or use a utility such as TinkerTool.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文