【使用 Automator 工具来创建一个能够打开终端并切换到指定目录的应用程序】

打开 Automator 应用程序。

选择 “应用程序”。

在左侧的操作库中找到 “运行 AppleScript” 动作并拖动到右侧的工作流程中。

在 “运行 AppleScript” 动作中,将下面的脚本复制并粘贴进去:

on run
    tell application "Terminal"
        do script "cd /Users/xxx/hacker/tools/xray"
        activate
    end tell
end run

猜你喜欢

转载自blog.csdn.net/qq_45697116/article/details/130311312
今日推荐