Restrict choose folder to volumes?

OK, so I have a script where the user selects a VOLUME from the Device List in the choose folder dialog and then a shell script is done on it. The thing is, I want to restrict it so that the user can only choose a volume and NOT a folder, since that messes up the script. Any way to do this?