How to hide Terminal Window when a script is running I've built a script that sits in the users login items that runs each time a user logs in but I want to prevent the terminal window or terminal application from popping up. I don't mind the app icon showing up in the dock but I have some users who tend to want to close the terminal window which cancels what the script is doing.

I've been googling this and there doesn't seem to be a simple solution. Checking "Hidden" in the login items does not hide the window.

Thank you
You could run your script using the screen utility. This will detach the program from the terminal so even if it is closed the program execution will continue.

Screen will exit once the program running in it has finished but not before.