Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Automate an Internet content filter' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automate an Internet content filter
Authored by: dmoore on Jan 27, '12 08:15:51AM

This doesn't seem to work for me in OSX Lion.

I have the Cron setup to start on 8am M-F for 3 hrs.
0 8 * * 1,2,3,4,5 osascript /Users/myname/Library/Scripts/selfcontrol.scpt 180

I have Usable Keychain Scripting installed into Users/myname/Library/ScriptingAdditions

I entered my password into Keychain Access for "SelfControl" item, always allowing access to Usable Keychain Scripting.

When the cron runs, SelfControl starts, sets itself to 3 hours, and then sits there. The "Start" button is not clicked. I have to manually click it. This defeats the purpose of the entire script, as I can just never click "Start" and go about wasting time.

If I go into AppleScript Editor, open the selfcontrol.scpt file, and click "Run", the script runs properly, opens SelfControl, presses Start, and all is well. Why doesn't it work with the Cron?

[ Reply to This | # ]