Posted on 02-18-2019 03:44 AM
Is it possible to restrict applications for a period of time ? Ideally we could prevent iMessages from working from 8am until 2:30pm. Is there a script that can block an app then allow the app based on time ?
Thanks
Carl Campion
Archmere Academy
Posted on 02-18-2019 05:07 AM
Hi, I think, this solution could help you a bit:
#!/bin/shell
# example !
defaults write /Library/../../my.company.restriced.app.plist RestrictApp -bool true
#!/bin/sh
# example!
dafaults write /Library/../../my.company.restriced.app.plist RestrictApp -bool false
OR
#!/bin/sh
# example!
defaults delete /Library/../../my.company.restriced.app.plist RestrictApp