搜索

PythonReactSEOPDF
GitHub Skill

macos-open

Open files, URLs, and applications on macOS using the open command. The universal entry point for launching anything.

malue-ai☆ 28 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

macOS 打开

使用 macOS open 命令打开文件、URL、应用、文件夹。

使用场景

  • 用户说「帮我打开这个文件」「打开浏览器到某个网址」
  • 任务完成后打开生成的文件让用户查看
  • 需要启动某个应用

命令参考

打开文件(用默认应用)
open "/path/to/document.pdf"
open ~/Downloads/report.xlsx
打开文件(指定应用)
# 用 VS Code 打开
open -a "Visual Studio Code" /path/to/project

# 用 Preview 打开图片
open -a "Preview" /path/to/image.png

# 用 Pages 打开文档
open -a "Pages" /path/to/document.docx
打开 URL
open "https://www.google.com"
open "https://notion.so"
打开应用
open -a "Safari"
open -a "Finder"
open -a "System Preferences"
# macOS Ventura+
open -a "System Settings"
打开文件夹
# 在 Finder 中打开
open ~/Documents
open ~/Downloads

# 在终端中打开(新窗口)
open -a "Terminal" ~/Projects
显示文件在 Finder 中的位置
open -R "/path/to/file.txt"
打开多个文件
open file1.pdf file2.pdf file3.pdf

输出规范

  • 打开后告知用户「已打开 XXX」
  • 如果文件不存在,说明原因并帮助查找
  • 打开 URL 时直接打开,不需要确认
  • 打开应用时如果应用不存在,推荐替代或安装方式

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!