|
|
Automate an Internet content filter
I'm one of those, "I use Photoshop and other graphics programs heavily but I have no idea how they actually work," kinda computer user... so here's the question: I want to automate SelfControl so that it only lets me use the internet from 3-4 and 9-10 pm. what should I write in the code to make it do that? Thanks so much. I'm extremely excited about using this program - I have a fancy desktop with a gorgeous Wacon Cintiq screen that I do my work on and I hate how distracting it is! I tried to get my network card removed and learned that it's attached to the motherboard! A piece of paper never gives me the option to look up microcephaly and whatever else is related for hours on end. Thanks a million.
Automate an Internet content filter
I also had a hard time getting the script to work and I don't think I quite understood how to install the key-chain thingy... help!
Automate an Internet content filter
Once you've downloaded Usable Keychain Scripting and double-clicked on the .dmg file, go to Finder, click on the disk image named "UKS 1.0b3" in the left column, and there you will find a file named "Usable Keychain Scripting." To install, drag it to any folder on your computer. I keep mine in /System Folder/Scripting Additions/. If you really don't want to deal with keychains, you could just save your admin password in the script itself, though I would not recommend it. In that case you could delete all the code from tell application "Usable Keychain Scripting"all the way up to, but not including tell application "SelfControl" to activateand replace it with this line: set myPass to "yourpassword" Keep in mind "yourpassword" must be replaced with your admin password. It's simple, but dangerous, as it leaves your password out in the open. You might want to change the permissions of the directory containing your script to be only readable by you.
Automate an Internet content filter
When I click on Usable Keychain Scripting nothing happens.
Automate an Internet content filter
That's all you need to do. You don't need to run it. Just drop it somewhere on your computer, and your applescript will automagically find it.
Automate an Internet content filter
Until someone figures out how to run the script with variables in iCal, I use the unix utility cron as mentioned in the hint. Here's how:
1,2,3,4,5 with a *. To delete these jobs, just go back into crontab and delete these two lines.
Cron is great for scheduling just about anything, including backing up certain folders to cleaning up your desktop. For more info check out this hint.
Automate an Internet content filter
I forgot to mention: If you want to block all internet with SelfControl, go to its main window, click "Edit Blacklist," and choose the "Whitelist" option at the bottom right corner of the domain list. Now, whenever you run your script, SelfControl will block all websites except those listed on your domain list. If there are no websites listed, you've got a perfect internet blocker, which makes it functionally the same as the commercial app Freedom. Who says Freedom isn't free? :) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|