I've been complaining about not being able to put the mac to sleep with a mouse. Well, Lauri came up with a solution. According to his concept (great work!) I created this AppleScript, which puts your mac to sleep after 10 seconds (unless you cancel it):
# time in seconds to delay before sleep
set delay_time to [...]
This tip uses AppleScript and shell script to create an AppleScript application that launches an ssh secured Screen Sharing (VNC client/server, introduced in OS X 10.5) to your remote machine.
First, make sure you have Screen Sharing enabled (System Preferences -> Sharing -> Screen Sharing).
Second, make sure you can use passwordless ssh login.
Third, create a shell [...]