From: D.M. Procida on 23 Jun 2010 17:57 zoara <me18(a)privacy.net> wrote: > Are there any that do it the other way around? So you get full access > for half an hour then your access is restricted to time-wasting domains > for a while? Did you mean that, or did you mean "... your access to time-wasting domains is restricted for a while"? Daniele
From: zoara on 24 Jun 2010 11:36 D.M. Procida <real-not-anti-spam-address(a)apple-juice.co.uk> wrote: > zoara <me18(a)privacy.net> wrote: > >> Are there any that do it the other way around? So you get full access >> for half an hour then your access is restricted to time-wasting > > domains >> for a while? > > Did you mean that, or did you mean "... your access to time-wasting > domains is restricted for a while"? Er, yeah. That's what I meant. Obviously I didn't proof-read my post for sily erors before posting... -z- -- email: nettid1 at fastmail dot fm
From: zoara on 24 Jun 2010 12:03 zoara <me18(a)privacy.net> wrote: > Since posting, I realised I could use an Applescript timer to trigger a > "blocker" after 30 minutes or whatever. Ideally I'd like to trigger > something like SelfControl but that doesn't seem to be scriptable. Oooh look. http://www.makeuseof.com/tag/6-apps-to-help-you-focus-be-productive-mac/ do shell script "open -a \"SelfControl\"" tell application "SelfControl" activate end tell tell application "System Events" tell process "SelfControl" click button "Start" of window "SelfControl" end tell end tell That triggers the SelfControl timer. I know there are a couple of ways to turn SelfControl off once it's started, but I'm going to studiously ignore those. As it stands, I can't access Facebook (not that I really do, anyway) for the next thirty minutes, even if I reboot. Brilliant. Only downside is that I needed to enter my password for it to trigger. I hope I don't need to each time... but I can't check for another half hour or so. I just need to add the right stuff to the blacklist, and then create a script with a timer before it triggers SelfControl. Sorted. Thanks for all the help! -zoara- -- "And the tiny universe compiles." http://powazek.com/posts/1655
From: Rowland McDonnell on 25 Jun 2010 14:35 Ric <infobubble(a)gmail.com> wrote: > (Rowland McDonnell) wrote: [snip] > > Isn't there some devious user unfriendly config file that's used for > > mapping 'net requests, so you can tell the machine effectively block > > access to whatever IP (or domain?) that way? > > > > If you know what I'm talking about (and I don't): how about writing a > > short script that swapped out the usual config file and swapped in a > > config file that blocked/re-directed to nullorwhatnot access to the > > sites in question on a timer - and put it back to normal on the same > > timer. > > > > <shrug> > > > > Would an approach like that work? [snip] > The Hosts file, yes. Ah yes, that's the badger. > The problem I would have with this is that the creation of multiple > hosts files, along with associated cron jobs etc, would turn into > exactly the sort of procrastination that stops me getting any work > done...! You should be able to do it without that much fiddle using AppleScript, I'd've thought - if you happen to be clued up on AppleScript. If not... Then again, if there's a more straightforward method... Rowland. -- Remove the animal for email address: rowland.mcdonnell(a)dog.physics.org Sorry - the spam got to me http://www.mag-uk.org http://www.bmf.co.uk UK biker? Join MAG and the BMF and stop the Eurocrats banning biking
From: zoara on 28 Jun 2010 04:59 zoara <me18(a)privacy.net> wrote: > zoara <me18(a)privacy.net> wrote: > >> Since posting, I realised I could use an Applescript timer to trigger > > a >> "blocker" after 30 minutes or whatever. Ideally I'd like to trigger >> something like SelfControl but that doesn't seem to be scriptable. > > Oooh look. > > http://www.makeuseof.com/tag/6-apps-to-help-you-focus-be-productive-mac/ > > do shell script "open -a \"SelfControl\"" > tell application "SelfControl" > activate > end tell > tell application "System Events" > tell process "SelfControl" > click button "Start" of window "SelfControl" > end tell > end tell > > That triggers the SelfControl timer. I know there are a couple of ways > to turn SelfControl off once it's started, but I'm going to studiously > ignore those. As it stands, I can't access Facebook (not that I really > do, anyway) for the next thirty minutes, even if I reboot. Brilliant. > > Only downside is that I needed to enter my password for it to trigger. > I > hope I don't need to each time... but I can't check for another half > hour or so. Sadly it always asks for the password. Is this likely to be something I can get around (perhaps by marking the ipfw settings file as user-writeable or something) or will I have to ask the developer? I don't know how to work out whether the password dialog is controlled by the application or the OS. The software is open-source, so there's a chance (however slim) that it can be fixed in either case. Can you use Applescript to enter a password into one of these dialog boxes? Security be damned. -z- -- email: nettid1 at fastmail dot fm
|
Next
|
Last
Pages: 1 2 Prev: Memory Upgrade Mac Mini Next: Why Americans are fat was Re: UK AEnglish Dictionary |