Nic*_*ick 9 mac finder terminal osx-mavericks macos
在终端中,我使用open .Finder 打开当前目录。
Open folders in new tabs设置在 Finder 中设置,但每次都会打开一个新窗口。在一个项目/一天结束时,我打开了几十个这样的窗口。
open .在终端中使用时,如何让 Finder 打开一个新选项卡,而不是一个新窗口?
尽管可以使用open .AppleScript 打开新选项卡,但您无法在 Finder 中打开新选项卡 - 来自如何在新选项卡中复制当前打开的 Finder 视图 (Mavericks)?
tell application "Finder"
activate
set t to target of Finder window 1
set toolbar visible of window 1 to true
end tell
tell application "System Events"
keystroke "t" using command down
end tell
tell application "Finder"
set target of Finder window 1 to t
end tell
Run Code Online (Sandbox Code Playgroud)
或者来自http://macscripter.net/viewtopic.php?id=41624
set docs_path to (path to documents folder) as string
set Sat_folder to docs_path & "Sat:"
set ABC_folder to (Sat_folder & "ABC:") as alias
tell application "Finder"
activate
open Sat_folder
end tell
tell application "System Events" to keystroke "t" using command down
tell application "Finder"
set target of front window to ABC_folder
end tell
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3134 次 |
| 最近记录: |