On my phone, I'm am enjoying a new tweak called MailStop which sole purpose is to limit my reflex of checking my mail far too often. I have set it to not allow me to start the Mail app for five hours once I have already started it. This has had a great impact on my mail checking abuse. I get to stop and remember I'm checking it far too often every time I try to open it during these hours.
There are other ways to limit the Mail app abuse with this application, but my question os the same as the title: Is there a way to limit how frequently you can start an application on the mac?
Best Answer
You can do this using AppleScript :
1. Open AppleScript Editor
2. Paste following code:
3. Adjust settings
The 3 first lines of the script can be edited to fit your needs. By default, check every 5 seconds if Mail has not been seen open since 10 min (which is 600 seconds).
4. Create the app
File menu > Export
5. Hide from dock
In the Finder, find the app you just exported, then right-click on it, and select "Show package content". Then open "Info.plist" of the "Contents" folder in TextEdit, and, before the last </dict> of the file, paste:
For info, after edit, end of my file looks like :
And save it of course.
6. Set your app as startup item
System Preferences > Users > ...