How create a quick action to run shell script on finder folder
I would like to add a quick action to the MacOS Finder, so that when I right click on a folder, there's an option to open a Terminal on the enclosing (or current) folder.
For example:
In the example above, I selected the "Week9..." folder for the quick action, which is supposed to open the Terminal session on the enclosing folder (in other words, the current folder selected on the Finder window), namely, "Mathematical Methods for Quantitative Finance".
This is how the quick action is defined:
Unfortunately, when I click on the quick action, I get this error:
Whenever I create a new quick action with the Shortcuts app in MacOS 15.1 Sequoia, it always inserts that "Receive" step, which seems to try to save the selected folder into the current folder itself. It fails and throws the error message above.
I don't want that "Receive" step.
How can I create a simple quick action to run a shell command like the one I want?
How can I get rid of the Receive step and pass the path to the current folder as an argument to the Run Shell step?
Thanks.
MacBook Pro 16″, macOS 15.1