So I found a means to block imessage, beyond application blocking, which doesn't work if the student reproduced the application as another name.
What I found is if oyu set the folder ~/library/messsages to read only to the end user the application wont launch.
What I am hopping to do is to invoke a script which I can launch at target times, which will close messages, and also set the application folder to read only, during school hours.
So essentially there will be two scripts...
One will be launchable from self-service which will repair the permissions only for outside of hours, and the other is an automatic one which will run on login up until 3:15pm and at 8:30am automatically.
Just need help with the script coding, I'm more competent with apple script rather than bash.
