Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Habusho

macrumors 6502
Original poster
Aug 12, 2006
327
5
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?
 
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.
 
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.

There are no other apps running. What it does is close the window but still leave the Terminal running in the dock.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.