Every so often, I'm away from my primary home machine (accessible via secure shell on a non-standard port) and I want to shut down Mail or Adium or RemoteDesktop or some other application. The following hack provides a more graceful shutdown than a kill from the commandline:
$ osascript
tell application "Mail"
quit
end
<CTRL-D>
Where the "Mail" could be "Adium" or whatever.

Add a comment.









