I’m looking for a solution to prevent the Messages application from launching between 7:50 am to 2:15 pm Monday through Friday. What is the best solution?
Time Based Application Restriction
Best answer by mm2270
You won't be able to do this using the built in Casper Suite Restricted Software function. That runs all the time and has no ability to set timeframes.
But you could create your own similar process following the same idea, which is a LaunchDaemon that runs every 15 seconds. But in the script, have it check the system time, and if it falls into the range of when Messages shouldn't be running, have it kill the app if it finds it in the process list, and send up a message similar to the one Restricted Software uses, with jamfHelper or whatever messaging tool you feel comfortable with. If the time it outside of the restricted range, just exit, or log something to a fuel and exit with no action taken.
Does that help?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
