Apple Script; How do you Quit Terminal.

Discussion in 'macOS' started by Habusho, Apr 14, 2008.

  1. Habusho macrumors 6502

    Aug 12, 2006
    Hi, I'm trying to run a .term script that starts up a service\program under login items. The script starts up, closes the window but then leaves Terminal running after running the script. Is there a way to tell the terminal in the script to quit the terminal after running the script.
    I tried osascript -e 'tell application "Terminal" to quit' but that didn't do anything, still left Terminal running in the background. Any ideas?
  2. Eraserhead macrumors G4


    Nov 3, 2005
    I suspect the terminal window is displaying an "are you sure you want to quit?" message, make sure you quit any Unix apps running in terminal first.
  3. Habusho thread starter macrumors 6502

    Aug 12, 2006
    There are no other apps running. What it does is close the window but still leave the Terminal running in the dock.

Share This Page