1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 【Mac】Macbook Finder 从当前位置快速打开终端

【Mac】Macbook Finder 从当前位置快速打开终端

时间:2019-11-02 00:30:05

相关推荐

【Mac】Macbook Finder 从当前位置快速打开终端

第一步、新建文件保存成 .scpt 文件

set cmd to ""tell application "Finder"set theWindow to window 1set thePath to (POSIX path of (target of theWindow as alias))set cmd to "cd " & "\"" & thePath & "\""end telltell application "Terminal"activatetell application "System Events" to keystroke "t" using command downdelay 0.5do script cmd in window 1end tell

第二步、双击打开,另存为 Application 类型,这样就会得到一个 .app 文件,把它拉到 Finder 的工具栏。

第三步、得到一个 .app 文件,按住 comand 键,把它拉到 Finder 的工具栏。

第四步、点击按钮可以直接打开终端

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。