I created a shortcut that does some processing of images using Pixelmator.
The first action is Get contents of folder myfolder and then the processing begins. This processing works fine, but now I want to use the Shortcut on the command line to process folders.
According to the documentation, Shortcuts can be run from the command line:
To run the “Combine Images” shortcut combining all the images on the Desktop to a PNG file, you could use the following: shortcuts run "Combine Images" -i ~/Desktop/*.jpg -o ~/Desktop/combined.png
I want to modify my Shortcut to accept a variable for the folder to process and then specify that folder on the command line.
How can I do that?