I think this script may help. I does get the UUID of any named volume.
on run set diskName to "Other_Files" set diskInfo to (do shell script "diskutil info -plist " & diskName) tell application "System Events" set infoRecord to value of (make property list item with properties {text:diskInfo}) end tell -- set uuid to VolumeUUID of infoRecord log diskName & " = " & uuid end run
With a little experimenting I think you can use this to get exactly what you need.
Notice, however, that I am using a very different technique in my script. Instead of getting the information as type text, I am writing xml data (-plist) to an AppleScript record named infoRecord. Perhaps you can get diskName from your 'choose from list' command.
(There is more technique here, but I don't want to complicate the solution prematurely.)
|