![]() I’m too lazy to provide a new screen snapshot today, but here in 2023, my OpenTerminalInFinderDir.scpt script appears at the bottom of a similar-looking menu on the menubar. Choose Shell > New Window > New Window with Profile. Popularity 10/10 Helpfulness 5/10 Language shell. When you combine this with enabling AppleScript in the Mac menubar (see the link below), the result looks something like this: Open Current Directory in Finder MacOS Terminal Answers Matrix View Full Screen. Here in April, 2023, I named this file OpenTerminalInFinderDir.scpt, and put it in either /Library/Scripts/AlsScripts or ~/Library/Scripts/AlsScripts. ![]() When I have a Mac Finder window in the foreground and run this script from the AppleScript menu on the macOS menubar, it opens a new Mac Terminal window, and automatically places me in the same directory as the current Finder folder. The name of the profile that opens is concatenated to the end of the New Window with Profile menu item. Go back to the parent folder, select the relevant folder, then activate the service via the Services menu or context menu. Set thePath to (quoted form of POSIX path of (target of myWin as alias)) Choose Shell > New Window > New Window with Profile. Fortunately the script code is relatively readable. I couldn’t find any other way to do this, so I finally wrote an AppleScript script to do it. In macOS Big Sur this works: System preferences > General > Prefer tabs > select always from the dropdown menu. AppleScript code to open a Terminal in the current Finder folderįor a while I have wanted to be able to open a Mac Terminal window in the same directory as the Mac Finder folder that I’m currently looking at. Apple/macOS Terminal/Finder tip: This tutorial shows how to open a Mac Terminal window in the current Finder folder by using AppleScript.
0 Comments
Leave a Reply. |