MacOS 文件夹如何设置 以某个应用程序打开

315 阅读1分钟

现在 Cursor 比较火,然后我有个需求:文件夹右键打开的时候以某个应用程序打开,比如 Cursor。 要这么做:

  1. 打开应用程序:自动操作
  2. 选取快速操作

image.png

3.右侧 标注1 标注2 选择后,左边搜索 shell image.png

  1. 将 运行 shell 脚本拖动到后侧后,输入脚本
for f in "$@"
do
    # 替换为你本地的 Cursor 应用路径
    open -a "/Applications/Cursor.app" "$f"
done

5.Commond + s 保存后,访达的文件中中右键快速操作即可看到

image.png