I have recently moved to OSX and I have a problem with my USB hard drive. When ever I put the computer to sleep with the hard drive connected, when it wakes up again I am greeted with an error that the hard drive wasn't disconnected properly etc. Is there a way, a script or something, to properly eject the hard drive when I put the computer to sleep, then have it connect again when the computer wakes?