You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Add Service to Finder Toolbar?

In Finder, "New Terminal at Folder" is available under Services.

Is there a way to add that service to the Finder toolbar?

MacBook Pro with Touch Bar

Posted on Apr 6, 2020 5:58 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 6, 2020 6:25 AM

Here is an AppleScript that will cd to the current open window in Finder:

https://alvinalexander.com/blog/post/mac-os-x/open-terminal-window-in-same-directory-as-current-finder-folder/


tell application "Finder"
    set myWin to window 1
    set thePath to (quoted form of POSIX path of (target of myWin as alias))
    tell application "Terminal"
        activate
        tell window 1
            do script "cd " & thePath
        end tell
    end tell
end tell


Save it as an Application and drag that application to your Toolbar.

6 replies
Question marked as Top-ranking reply

Apr 6, 2020 6:25 AM in response to Barney-15E

Here is an AppleScript that will cd to the current open window in Finder:

https://alvinalexander.com/blog/post/mac-os-x/open-terminal-window-in-same-directory-as-current-finder-folder/


tell application "Finder"
    set myWin to window 1
    set thePath to (quoted form of POSIX path of (target of myWin as alias))
    tell application "Terminal"
        activate
        tell window 1
            do script "cd " & thePath
        end tell
    end tell
end tell


Save it as an Application and drag that application to your Toolbar.

Apr 6, 2020 6:04 AM in response to BevInTX

BevInTX wrote:

In Finder, "New Terminal at Folder" is available under Services.
Is there a way to add that service to the Finder toolbar?


What does that service do exactly?


You can drag just about anything to the Finder tool bar...





Get to know the Finder on your Mac - Apple Support


See and organize your files in the Finder on Mac - Apple ...



Apr 6, 2020 6:07 AM in response to BevInTX

If you check it, it should show up in the contextual menu when you ctrl-click on a folder, or in the gear menu > Services if you select a folder. The key is you have to select a folder, not in a folder.

You can't make it act on the folder you have open. If that is what you want, then you'd need to use leroydouglas' idea of creating a shell script or AppleScript application to add to the toolbar.

Add Service to Finder Toolbar?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.