I'd like to run wolfram code (probably a .wls script) on a file or set of files by selecting them in the finder and using Right-click > Services
.
For example, long ago I made a convenient service with Automator and Python to convert any selected images to jpeg:
An answer here would make for a very useful tutorial!
Update 1 (Response to @xslittlegrass's solution)
I got your solution to run directly in the terminal and also with the play button in the Automator app. But after I saved the workflow in ~/Library/Services/ and tried to use it from right click menu > service > workflow nothing seems to happen... Any ideas?