Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Phazor

macrumors newbie
Original poster
Aug 29, 2009
2
0
Hey guys,

I go to a university where there is a weekly network usage limit, and I don't want uTorrent sucking it up. I know the simplest way to go about stopping it is from working is closing it when I get to school or stopping my torrents, but this can result in me forgetting about it. Is there an automated way to block uTorrent while I'm connected to this specific network?


Thanks in advance.
 
I think you could get this done with ControlPlane. Maybe setup an Applescript to run that pauses the torrent when a given network is detected.

Thanks. Thats a great idea but i wouldn't even know where to begin writing the script. Do you know of/could you point me towards a forum where I could ask for help?
 
Thanks. Thats a great idea but i wouldn't even know where to begin writing the script. Do you know of/could you point me towards a forum where I could ask for help?

You can tell Applescript to basically click menu options for you.

So I am thinking you could tell ControlPlane to run a Applescript when the uni. network is detected. Then write the script so it clicks whichever UTorrent menu choice pauses all torrents.

It would look something like below. I don't know which menu choice it is, so you will need to look at UTorrent and make adjustments to the script. You should only need to change the two sections in quotes in that click menu line.

Code:
tell application "UTorrent" to activate
tell application "System Events"
	tell application process "UTorrent"
		click menu item "Pause Torrents" of menu "File" of menu bar 1
	end tell
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.