• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unmounted disks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Unmounted disks
      • From: Shane Stanley <email@hidden>
References: 
 >Startup Disk (From: Gil Dawson <email@hidden>)
 >Re: Startup Disk (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
  • Next by Date: Re: Unmounted disks
  • Previous by thread: Re: Startup Disk
  • Next by thread: Re: Unmounted disks
  • Index(es):
    • Date
    • Thread