Low Disk Space Script

Low Disk Space Script - A simple AppleScript that checks if there's a certain (pre-defined) amount of available space
Download

Low Disk Space Script Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Matthew Lindfield Seager
  • Publisher web site:
  • http://www.macmanager.com.au/software/low_space_script.html
  • Operating Systems:
  • Mac OS X or later
  • File Size:
  • 6 KB

Low Disk Space Script Tags


Low Disk Space Script Description

Low Disk Space Script - A simple AppleScript that checks if there's a certain (pre-defined) amount of available space Mac OS X requires a certain amount of available space on its boot drive to function normally (at least 500MB, preferably over 2GB for safety). If it gets too low, the system begins to slow down, to an eventual crawl, and can actually crash the computer / server altogether, requiring potentially hours / days of rebuilding.This is a simple AppleScript that tests two things:· That there are no hard drives missing· That there is a certain (pre-defined) amount of available spaceIf one of these tests fail, it then automatically sends an email (to one or more pre-defined addresses) to inform you of the relevant problem.By default, Low Disk Space Script checks for one hard drive to see if it has at least 10% of available space remaining. To customise this for any number of hard drives, and a minimum percent of your choosing, open the script and modify the first 3 values under "change these settings" to whatever you like. · To set how many drives (internal and external) you have connected , change the property next to "set expectedNumberOfHardDisks to" from the default of 1 to how many you have· To set the minimum amount of free space you'd like to check for, change the property next to "set minimumFreeSpacePercentage to" from the default of 10 to what you'd like· And most importantly, to tell it what email address(es) to send the error report to, change the property next to "set sendToAddresses to" to your email address. Be sure to keep all the relevant code such as { " , " } otherwise the script may not workOnce finished, you do not need to save the script as an application, compile it, or anything like that. Just save it once you're finished customising, and this is the file that we will use in the instructions below. You may want to move it to a safe location (such as Documents or your Library folder) so it won't accidentally be moved or deleted.


Low Disk Space Script Related Software