Backup, email then sleep.


Hello All

I'm trying to setup an AppleScript to monitor a timemachine backup.. I would like it to be able to make a note of the start time, start the back, make a note of the end time and then email the stats to an email address, and put the machine into hibernation.

Now, I've thrown together a script using snippits from the Internet, but it seems to process each command immediatly. So it's not waiting for each previous command to complete.

I've tried using the pause/wait statement which works, until I get to the point where I need to wait for timemachine to backup.

I'm backing up lots of data onto an external drive, so I don't want to have to sit in front of it, or keep checking it.

Any help would be appreciated.

Mike Hudson