Notify users when their disk space is running low
I'm an administrator of about 100 Apple macs and an OS X server and generally speaking, problems are pretty easy to fix. There is just one major problem I'm always having and its simple to fix, which is that when Users run out of home disk space (only 600MB each) applications start crashing (understandably). The problem is that users don't actively watch their free disk space and when things start going wrong, I'll come along and point out that they need to delete some things and it'll start working again.
What I'm having trouble with (because I'm an absolute beginner) is making an AppleScript (or whatever would be best) to watch for when their home space is getting full (with 20MB free space) it'll pop up and say "don't trouble the technician, delete some files!" (or something along those lines)
So, here's what I have (pretty pathetic)
tell application "Finder"
set freeSpace to (free space of (get startup disk)) div 1024 div 1024
end tell
Is their a way of finding disk space of a Home Drive (which is on a network drive on the server)
What I'd like is to say
tell application "Finder"
set freeSpace to (free space of (get home)) div 1024 div 1024
end tell
It tells me "can't get free space of folder "stephenl"" (my home folder)
Could anyone please help
PowerG4's G5's and XServer Dual G4 2GB ram, Mac OS X (10.4.4)