Unmounted disks
Unmounted disks
- Subject: Unmounted disks
- From: Gil Dawson <email@hidden>
- Date: Mon, 19 Jun 2017 19:12:58 -0700
My script needs to learn the names of unmounted (ejected but still connected)
hard disks.
Back on 28 April 2014, Yvan Koenig showed us an effective script to parse the
result from...
do shell script "diskutil list | grep Apple_HFS"
Result:
" 2: Apple_HFS MBProHD 319.2 GB disk0s2
2: Apple_HFS Black iOmega 319.7 GB disk1s2
2: Apple_HFS Orange Backup of MBP... 999.9 GB disk2s2
2: Apple_HFS Flash Player 20.0 MB disk3s2"
...which can see both mounted and unmounted disks ("Black iOmega" is unmounted).
However, long disk names (e.g., "Orange Backup of MBP...") will be abbreviated.
Does anyone see a way to find the entire long disk name?
--Gil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden