Possible to run a shell script via the context menu of a file?

pmg


Joined
Feb 6, 2017
Messages
1
Reaction score
0
Points
1
Hello,

I wrote a nice little shell script to resize and watermark images. It has an integrated file selector, but I thought of an idea to save the file select part:
I would like to select the image in the finder, right click on it and run the shell script from right there, passing the selected image as parameter.

I already tried to create this using the "open with" dialog, but it won't let me select ".command" files.

Thanks alot for your help!
Philipp
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top