Tutorial Details
- Subject: Alfred
- Languages Used: Shell, PHP
Today, I’m going to teach you how to build a plugin for the popular Mac productivity application, Alfred, with PHP. As you’ll find, it’s a lot easier than you might expect! Even better, this allows us to extend Alfred to provide any additional functionality that we require.
For this tutorial, I’ll walk you through the process of creating your own extension that will retrieve Lorem Ipsum text from Lipsum.com, and copy it directly to your clipboard with a few simple lines of PHP.

Very well, I like this very much.
Really enjoyed this, want to see more from you.
That Simple HTML DOM Parser is just kickass.
I’m gonna start using this for sure!!
Great Tutorial, love this app launcher.
hahahaha the southern accent was pretty funny, gotta say…
Didn’t knew about simple html dom parser – it’s a cool library and I will use it in future.
Awesome video!
Nice work!
After downloading the script copies the text without any tag.
Only paragraph: Lipsum ….
instead of a paragraph tag Lipsum …
Do you have any advice please?
May have been the wrong version of the script. Check and make sure the script.php is selecting innertext at the end, and not plaintext
Do we need the powerpack to be able to run these?
This was a great tutorial, I learned a lot about the DOM Parser; however, for Lipsum Text I’ll stick to TextExpander snippet.
Really nice, and useful tutorial! Thanks.
Why not just use pypsum? http://code.google.com/p/pypsum/wiki/pypsum
I had never heard of Pypsum. The tutorial was more about the process of creating Alfred extensions than getting lipsum text though. I chose my lipsum text extension to create because it seemed like a good one to share with other web devs and it made use of a really cool library (HTML DOM Parser) that I thought other devs might like as well. I’ve used it for several extensions I’ve created including extensions that grab and display WolframAlpha result data, php function syntax (from php.net), package tracking info (from packagetrackr.com), etc.
Thanks for the tip though. Pypsum looks pretty cool
thanks for shared :)
Thanks a lot. I was searching the web and apparently this blog post was the only one explaining how to create one.
Love Alfred app.