Eject all disks except for

Hey @triplesgames :wave:

My friend told me that Jettison has AppleScript support so you could talk directly to the Application using these 4 commands:


tell application "Jettison" to Mount <DriveName>

tell application "Jettison" to Eject <DriveName>

tell application "Jettison" to EjectAndSleep

tell application "Jettison" to Sleep 

  • the Mount command mounts all previously ejected drives or the ones you define

  • the Eject command ejects all drives or the ones you define

  • the EjectAndSleep command ejects all drives and puts the Mac directly to sleep

  • the Sleep command puts the Mac to sleep

Using these commands you can also have the full control over diskimages (dmg) and sd cards if you want - for this to work you have to enable the corresponding Settings…

This application is a game changer no more unnecessary unplugging and replugging for drives or the usage of diskutil to mount a drive …

Greetings from Germany

Tobias

1 Like