Install
openclaw skills install mac-app-launcher查询和打开 macOS 应用程序。通过关键词搜索已安装的 App,并使用 open 命令启动。 当用户要求查找、搜索、列出、打开某个 Mac 应用程序时使用。
openclaw skills install mac-app-launcher使用 mdfind 通过 Spotlight 索引搜索应用(最快最全):
mdfind "kMDItemKind == 'Application'" -name "<关键词>"
如果用户未提供关键词、想浏览所有应用,改用目录列举:
ls /Applications /Applications/Utilities ~/Applications /System/Applications 2>/dev/null
mdfind,支持模糊匹配中英文应用名mdfind 无结果,回退到 ls + grep -i 在常见目录搜索找到目标应用后,使用 Shell 工具执行:
open -a "应用名称"
或使用完整路径:
open "/Applications/XXX.app"
mdfind 搜索匹配的应用open 命令启动应用open -a 需要精确的应用名或路径,优先使用 mdfind 返回的完整 .app 路径/System/Applications,第三方在 /Applications/Applications,但部分命令行工具在 /opt/homebrew/bin