Thanks for the AppleScript code, Keith.
Here's a shell command example of the method I use to obtain the device node for a volume (e.g. Backup) with diskutil:
% diskutil list | awk '/ Backup / {print $6}'
disk1s5
There's a space before and after the Backup string so it's recognized as a single word to differentiate it from my BackupBoot volume. And to mount it:
% diskutil mount `diskutil list | awk '/ Backup / {print $6}'`
Volume disk1s5 mounted
|