I often find myself wanting to open a terminal in the directory I’m staring at in the Finder. I usually drag folders (or their proxy icons) onto the Terminal, or I type cd and drag into an existing terminal window1. But today it occurred to me that you can probably add a button to the Finder’s toolbar to do this in one click, and it occurred to me that ChatGPT could probably do it for me. Yes, and yes. The solution turned out to be surprisingly simple. So simple that I’m quite sure there are a thousand blog posts already detailing this solution. This is mine. Sort of. First, create a new Automator Application containing a single “Run AppleScript” action: tell application "Finder" set targetFolder to POSIX path of ((target of front window) as alias) end tell do shell script "open -a Terminal " & quoted form of targetFolder Save it somewhere permanent. I put it in ~/Applications/Open Terminal Here.app. Then ⌘-drag the application into the Finder toolbar. Now every Finder window has a…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.