• 关于M1 Mac如何设置打开终端的快捷键


    在启动台中找到自动操作并打开

    选择快速操作

    将“工作流程收到”设置为“没有输入”;然后将左侧的“运行AppleScript”拖到右侧

     在右侧代码处替换如下的代码

    该代码是在桌面打开终端,所处的路径是 ~

    on run {input, parameters}
    	
    	(* Your script goes here *)
    	tell application "Terminal"
    		reopen
    	end tell
    end run

     可以点击运行开是否能执行成功,之后“command+s”保存并命名为open terminal

    提供第二种打开方式,可在任意位置打开终端

    on run {input, parameters}
    	tell application "Finder"
    		set myWin to window 1
    		set thePath to (quoted form of POSIX path of (target of myWin as alias))
    		if application "Terminal" is running then
    			tell application "Terminal"
    				do script "cd " & thePath
    				activate
    			end tell
    		else
    			tell application "Terminal"
    				do script "cd " & thePath in window 1
    				activate
    			end tell
    		end if
    	end tell
    end run

     保存后可命名为open terminal here

    之后打开 系统偏好——>键盘——>快捷键

    在左侧选择服务,右侧通用处找到刚刚命名的两个文件,然后设置喜欢的快捷键即可

     

    2021-06-11  16:33:06

    请尊重作者原创,转载复制请标明出处!!! (免责声明: 该博客中所发表的文章仅用作学习使用,任何人不得用来做违法犯罪活动,出现问题均与本人无关。)
  • 相关阅读:
    javascript中的继承实现
    【414】Code::Blocks增加主题
    【413】C 语言 Command line
    【412】Linux 系统编译 C 程序
    【411】COMP9024 Assignment1 问题汇总
    【410】Linux 系统 makefile 文件
    Solr的入门知识
    Java8新特性
    Linux命令大全
    为博客园博文添加目录的两种方法
  • 原文地址:https://www.cnblogs.com/Yuuki-/p/14875645.html
Copyright © 2020-2023  润新知