On Jan 31, 2008 2:47 PM, Luther Fuller <
email@hidden> wrote:
repeat with adisk in diskList
"diskutil info /Volumes/" & (name of adisk) & "/"
FWIW, I don't believe that ( "/Volumes/" + (name of disk) ) is guaranteed to work in all cases, since if you have two disks with the same volume name, the (name of) will return the same value for both of them, while the mount point under /Volumes will necessarily be different. This is a rare edge case that you might not want to worry about.
Given the (not necessarily unique) volume name, one way to get a unique disk identifier (the diskXsY version) is this:
set diskName to (do shell script "diskutil list | awk '($3==\"" & (name of adisk) & "\") {print $NF}'")
but that's susceptible to a more likely problem, in that it won't work if the volume name has a space in it...