How do I forcibly shut down a specific application at a pre-determined time? I don't know if there's an available app or perhaps a terminal command, but I'd like to forcibly shut down a specific application at a specific time, without the option to cancel.

I'd like it so I can choose the time.

To make a long story short, there's a game that's incredibly addicting and if I don't force quit it, I can totally see myself getting lost in it for extra hours.

I'd rather just have the application quit, regardless of where I am in the game, so I make sure to follow through on my allotted time period for playing.

There's something similar, but not entirely applicable here (The info here could help in forming an answer):
How can I forcibly shut down my Mac at an appointed time?
You can quit apps with AppleScript, such as:

osascript -e "tell application 'Safari' to quit"


Therefore, you can add the following to your crontab (env EDITOR=nano crontab -e) to quit an app without saving at 17:30 every day:

30 17 * * * /usr/bin/osascript -e "tell application 'Safari' to quit saving no"


If you want to quit without saving, you can remove the saving no.
Alternatively, you can kill the process with /usr/bin/killall Safari.