440Forums  |  MacMusic.org  |  PcMusic.org  |  440tv  |  Zicos  |  AudioLexic
several   {key13}


Eject all locally mounted disks via AppleScript

MacOsxHints

Friday May 30, 2008. 04:30 PM
MacOsxHints

If you're like me, you tend to install several updates and/or software packages at once. When through, I like to eject all my mounted disk images with a simple AppleScript: tell application "Finder"to eject (every disk whose ejectable is true and local volume is true and physical size < 1.0E+9) Technically, this doesn't look for mounted DMGs but rather for ejectable, local (ie, non-network) disks with a size less than about 1GB. For most purposes, this will do the job. Copy and paste the above into Script Editor and save the resulting script in ~/Library/Scripts, then access it from the Scripts menu. Alternatively, add it to your tool bar, side bar, or assign it a hot key (with a third party hot key program), etc. [robg adds: As this script only checks for size and ejectable status, it may have unintended results depending on your system configuration. When I ran it, it ejected one (but not both) of my mounted CDs, but didn't eject the T...
you
Eject all locally mounted disks via AppleScript Read more at MacOsxHints
feeds.macosxhints.com/~r/macosxhints/recent/~3/301298233/article.php

 

 Related News 
Use an AppleScript to force a desktop picture change Use an AppleScript to force a desktop picture change
 MacOsxHints 06/11/08 04 PM 
Seagate will produce SSD disks in 2009 Seagate will produce SSD disks in 2009
 Mac Bidouille 05/31/08 05 PM 
Set Excel 2008 default zoom level via AppleScript Set Excel 2008 default zoom level via AppleScript
 MacOsxHints 05/30/08 04 PM 
Seagate preps SSDs, 2TB hard disks for 2009 Seagate preps SSDs, 2TB hard disks for 2009
 MacNN 05/30/08 03 PM 
Move and resize app windows via AppleScript Move and resize app windows via AppleScript
 MacOsxHints 05/28/08 04 PM 
Yet another Manufacturer of SSD disks Yet another Manufacturer of SSD disks
 Mac Bidouille 05/28/08 07 AM 
Intel Might accelerate the development of SSD disks Intel Might accelerate the development of SSD disks
 Mac Bidouille 05/24/08 10 AM 
Set MTU value for any interface via AppleScript Set MTU value for any interface via AppleScript
 MacOsxHints 05/22/08 04 PM 
Optical disks made of paper Optical disks made of paper
 Mac Bidouille 05/22/08 07 AM 
Cannot eject an external drive Cannot eject an external drive
 MacFixIt 05/21/08 08 PM 
10.5: Eject stubborn disk images via AppleScript 10.5: Eject stubborn disk images via AppleScript
 MacOsxHints 05/21/08 04 PM 
Bypass DNS timeouts in Safari via AppleScript Bypass DNS timeouts in Safari via AppleScript
 MacOsxHints 05/20/08 04 PM 
View maximized Cover Flow window via AppleScript View maximized Cover Flow window via AppleScript
 MacOsxHints 05/16/08 04 PM 
We are not finished with the saga of the Seagate disks in por... We are not finished with the saga of the Seagate disks in por...
 Mac Bidouille 05/14/08 09 AM 
SSD disks for portables the fastest in the world ? SSD disks for portables the fastest in the world ?
 Mac Bidouille 05/14/08 09 AM 
Google wants to fit SSD disks to its servers Google wants to fit SSD disks to its servers
 Mac Bidouille 05/13/08 10 AM 
Export Address Book entries to HTML via AppleScript Export Address Book entries to HTML via AppleScript
 MacOsxHints 05/01/08 04 PM 
10.5: Eject drives and run iSync before sleep via script 10.5: Eject drives and run iSync before sleep via script
 MacOsxHints 04/25/08 04 PM 
Sync or eject iPods/iPhones in iTunes via AppleScript Sync or eject iPods/iPhones in iTunes via AppleScript
 MacOsxHints 04/25/08 04 PM 
Solve More Word 2008 Problems with AppleScript Solve More Word 2008 Problems with AppleScript
 TidBITS 04/22/08 06 PM 

Search

Mac Zicos
Sat October 11, 05:16 AM
several   {key13}