43 Folders

Back to Work

Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.

Join us via RSS, iTunes, or at 5by5.tv.

”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.

osx assisted anti-procastination hack?

Most of my procrastination comes in the form of surfing the web, reading RSS feeds, or checking email.
Do you know if an applescript can turn off airport for a specific time?
This would be a great anti-procastination hack. Even better if it would be Password protected and is shouting "Cheater" at you if you try to bypass the lockout ;)

TOPICS: Mac OS X
noodle's picture

airport off

I was bored. And I've been wondering about the Airport off thing myself. I've scoured the net and there's apparently not a real easy way to turn off Airport, meaning that you have to use a GUI instead of just typing a command. Real annoying.

tell application "Internet Connect" to activate

tell application "System Events"
	tell process "Internet Connect"
		if not (exists window 1) then
			keystroke "n" using command down
		end if
		
		if not (exists window "Airport") then
			click button "airport" of tool bar 1 of window 1
		end if
		
		if exists button "Turn Airport Off" of window "Airport" then
			click button "Turn Airport Off" of window "Airport"
		end if
	end tell
end tell

tell application "Internet Connect" to quit

 
EXPLORE 43Folders THE GOOD STUFF

Popular
Today

Popular
Classics

An Oblique Strategy:
Honor thy error as a hidden intention


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Cranking

Merlin used to crank. He’s not cranking any more.

This is an essay about family, priorities, and Shakey’s Pizza, and it’s probably the best thing he’s written. »

Scared Shitless

Merlin’s scared. You’re scared. Everybody is scared.

This is the video of Merlin’s keynote at Webstock 2011. The one where he cried. You should watch it. »