Hack for Remotely Quitting Apps on MacOS X

Paul Brown @ 2006-11-01T16:15:00Z

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.

Meta

Tags: (tag) (tag) (tag) (tag) (tag) (tag)

(comment bubbles) 0 comments
422 direct views