Is there a way to prevent applications to run, like I can with selfControl to disable opening websites?
Freedom allows you to block apps on desktop, it includes a locked mode that should work if you block the right things, it is a paid app however.