Pass selected file path to a shell script
Hi -- I'm messing around with creating custom icons, and the final step of the process is co create an ICNS file with the terminal command iconutil -c icns [folder path]
I can open the terminal and type in iconutil -c icns, then drop the .iconset folder into the terminal window to get its path and run the script, but I thought it would be more efficient to create a quick action called Make ICNS that I could run from a contextual menu.
I set the Quick Action to receive the current folders in Finder, added a Get Selected Finder Items call, then called Run Shell Script, but I can't figure out how to pass the selected file path into the shell script. Everything I've tried so far just returns an error.
Any suggestions?
Thanks!
-- Lou