Xcode 2.1 normal AppleScript template... This was just for fun, put this at the end of your workflow and your Mac will Sleep once it has completed it's tasks...