I want to add an option to the finder context menu that calls hg add %1
with %1 being the full path of the selected file in finder.
Of course there are more
Open Automator, create a custom workflow. From Library
choose Utilites
, then drag and drop Run shell script
to the workflow. Set Pass input
to As arguments
. Write in your script: hg add $1
. Then File menu->Save as a Plugin
, specify the name, choose plugin for Finder
, Save
. Right click on the file, choose More->Autamator->
.