I have an attached USB External Drive that is seen by Disk Utility…but is not mounted for use.
(It had been previously unmounted as a protection mechanism)
How do I mount the drive for use by the OS in Applescript?
Michael
I have an attached USB External Drive that is seen by Disk Utility…but is not mounted for use.
(It had been previously unmounted as a protection mechanism)
How do I mount the drive for use by the OS in Applescript?
Michael
I use this in one of the two forms to mount or dismount a thumb drive. It will only mount a drive that has been dismounted; not one that has been ejected:
set _VolumeName to "SanDisk-1GB" -- fix the volume name here.
set deviceName to do shell script "diskutil list | grep \"" & _VolumeName & "\" | awk '{print $6}'"
do shell script "diskutil mountDisk /dev/" & deviceName -- mount the drive
-- do shell script "diskutil unmountDisk /dev/" & deviceName --unmount the drive
Thank you Adam…that worked perfectly!
Michael