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: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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.