- Open up Automator.app located in your Applications folder.
- Choose ”Service” in the dialog sheet when creating a new document.
- In the
Services receives selected:menu at the top of the ”Canvas” on the right, change to ”Files & Folders”. - In the sidebar to the left, search for
Get Selected Finder Items - Drag this Action to the ”canvas” on the right side.
- Again, go to the sidebar at the left and this time search for
Run Shell Script - Drag the
Run Shell Scriptaction to the ”canvas” on the right side. - At the right in the
Run Shell Scriptaction, change thePass inputfromto stdintoas arguments - Copy paste this into the action text box, removing the
Catcommand in the text box: