I’ve been writing tons of Ajaxy goodness lately, lots of concurrent projects each in a different folder, a different drive - and honestly I’m just too lazy to stop and start MAMP or Web Sharing, really I’m that lazy, so I thought it would be pretty handy a AlfredApp extension that would make running a HTTP server from any directory an simple as a keypress.
Usage: Evoke Alfred, Choose a folder, choose the action, Safari will/should open to ‘localhost:8080’ with your directory as the root, if your directory has a index (html/htm) file that should run.
Simple HTTP Server with AlfredApp
So Alfred 0.9.9 was recently released, it’s awesome - and it get’s better with every release. One of the new features is that it supports extensions (applescripts, shell scripts, automator actions, specific file references and search filters) here’s 2 that I knocked together rather quickly.
- Hide / Show Desktop: this shows and hides the files that may be on your desktop, handy for those times when you need to focus - it does it’s mojo by setting a finder flag on and off, your files are uneffected
- Ignore this file with Alfred: this extension is most useful via the files actions interface - I use it to clean up my Alfred search results - search a file, select some of the extraneous result that occassionally happen select this action and those unwanted results shouldn’t include the acted upon file next time.
Stop back to this post from time to time, as I’ll certainly be writing a few more of these