Mac OS X 10.14.6 Add option to Right Click Menu in Finder

Solution 1:

In Automator, create a new Service/Quick Action adding a Run Shell Script action, with settings for both as shown in the image below.

Save it as, e.g.,: Touch

It will then be available on the Quick Actions menu as well as the Services menu.

Note that you could also create this as an Automator application and add it to the Toolbar in Finder using drag & drop, with down as necessary. However, while not absolutely necessary, I'd first give it a nice icon via its Info sheet before adding it to the Toolbar.

Example shell script code:

for f in "$@"
do
    touch "$f"
done 


enter image description here