Jump to content

Workflow to Eject External Drive


Recommended Posts

The way I do it with a hot key, create a workflow with your desired hot key and then this applescript:

 

do shell script "diskutil unmount /dev/YOUR-DISK'S-BSD-NAME"

 

To find the disk's BSD name, mount the disk, then: About This Mac-> More Info...-> System Report -> then look under Firewire or USB and you will find it.

 

There's probably another/better way, but this works for me.

Link to comment

If you need to eject multiple drives, then just repeat the line in the script (one for each volume):

 

do shell script "diskutil unmount /dev/YOUR-DISK'S-BSD-NAME1"

do shell script "diskutil unmount /dev/YOUR-DISK'S-BSD-NAME2"

do shell script "diskutil unmount /dev/YOUR-DISK'S-BSD-NAME3"

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...