And it will remind you get back to work, if you fail to swhtch your app after two reminders it activates your default work apps effectively interrupting your distraction. This AppleScript will detect when you are using a distracting application every 2 minutes. And my distractions come from the other applications (Safari, etc.) Suppose that I need to get some work done using a set of applications, for example:TextMate, Skim, Mathematica, Finder, Illustrator and Photoshop. I like to have SelfControl automatically run from 7-10am every weekday morning, so my crontab has the following line in it:Ġ 7 * * 1,2,3,4,5 osascript /Applications/kerfi/Applescript/selfcontrol.scpt 180įor me, what I have found to work is to automatically generate anti-distractions recurrently. The script can also be run with arguments from the command line to achieve different timings. All of these methods will activate SelfControl (with its current blacklist or whitelist setting) for 45 minutes, or for whatever you set the default time to be. You can now run selfcontrol.scpt easily from Quicksilver, put it in the Dock, or schedule it in iCal. Now save the script and name it something like selfcontrol.scpt. In your script, at the line that says defaultTime to 1, change 1 to 45 (or whatever number of minutes you'd like the default time to be.) I use 45, so that I can run this script hourly: work 45 minutes, play for 15.Click 'Always Allow.' Note: This will activate SelfControl for 1 minute, so don't navigate away from this page during that time! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |