跪求macosx右键打开终端方法
买了一macbook,由于本人经常用到命令每次都点finder->application->terminal完了还要输文件夹路径
问题除了tab键,有没有直接能复制粘贴路径的方法呢?
我去,累死了,有没有像linux那样nautilus-open-terminal
右键打开终端的程序呢?直接进去就是当前目录了,这不省事多了 粘贴复制很简单,终端和图形一样的。看看快捷键吧。
终端可以放到桌面下的一栏,那里专放快捷方式。 本帖最后由 alixkanglu 于 2011-12-24 15:50 编辑
1. Please try to drag the file 2 the Terminal.app Directly!!
See that.
2. And you can use Ctrl + Space too. Ctrl + Space --> input "Terminal" -->Enter....
3. Using Apple Script to add right clicked function... 直接用search啊(control+空格),然后输入 terminal,搞定 本帖最后由 antonym55 于 2012-02-26 13:58 编辑
右键可能是没办法了,不过可以在无处不在的menu bar 中使用AppleScript,也能达到相同的效果,
在AppleScript Editor 里面新建脚本
将该脚本存放到~/Library/Scripts 里面
当然/Library/Scripts也行
tell application "Finder"
set sel to selection
if (count sel) > 0 then
set myTarget to item 1 of sel
else if (count window) > 0 then
set myTarget to target of window 1
else
set myTarget to path to desktop folder
end if
my openTerminal(myTarget)
end tell
on openTerminal(location)
set location to location as alias
set the_path to POSIX path of location
repeat until the_path ends with "/"
set the_path to text 1 thru -2 of the_path
end repeat
set cmd to "cd " & quoted form of the_path & " && echo $'\\ec'"
tell application "System Events" to set terminalIsRunning to exists application process "Terminal"
tell application "Terminal"
activate
if terminalIsRunning is true then
do script with command cmd
else
do script with command cmd in window 1
end if
end tell
end openTerminal
比如将该脚本存为"Open Terminal Here",然后就可以在menu bar 的ActionScript中看到该脚本了,在任何地方执行该脚本就可以打开Terminal了
P.S. 如果你的menu bar没有显示ActionScript图标,需要在AppleScript Editor中设置一下。 搞定:mrgreen: 你把它固定在Dock上不就得了?
为什么一定要右键,而且有好几个linux版本我发现也没有右键,gnome都被他们改疯了
而且最新的lion,可以记忆退出状态,我的终端长年开着,他就一直在那 或者你可以试一下
Go2Shell
这个小软件 用 cdto 或者 go2shell 省事多了
页:
[1]
2