AppleScript to Enable Web Sharing with QuickSilver

Doing a lot of development on my local machine, I am needing to having Web Sharing enabled much of the time. Web sharing is basically Apache running on your Mac. However the problem comes in that it will start several processes and keep them running, consuming valuable memory.

Enter Applescript

So I cobbled together the following Applescript, complete with Growl support, that will enable or disable Web Sharing for you, with one click!

All you have to do is download the attached file and run it.

What about making it run with Quicksilver?

Simple! Download the file and place it here:

/Users/{your username}/Library/Application Support/Quicksilver/Actions/

Now restart Quicksilver.

When it comes back up, type “Web Sharing” and hit “Enter”.

The script will execute and toggle your Web Sharing preference.

Leave a Reply

Your email address will not be published. Required fields are marked *