Get volume paths on Automator shell service

106 views Asked by At

I'm trying to make a service in Automator to run a program on my usb key (to run as a right click service).

This is the bash shell script I need to run

diskutil unmount /Volumes/KINGSTON
fatsort -f -oa /dev/disk1s1

The two paths /Volumes/KINGSTON and /dev/disk1s1 should be treated as variables, being evaluated by Automator. I get the first one with "Get selected Finder elements" and I put on the shell script as $1

I.E.

diskutil unmount $1

But I don't know how to get the /dev path

0

There are 0 answers