How to Create an Alfred Extension
videos

How to Create an Alfred Extension

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.

Choose 720p for optimal viewing.
Subscribe to our YouTube and Blip.tv channels to watch more screencasts.

Add Comment

Discussion 14 Comments

  1. friv 2 says:

    Very well, I like this very much.

  2. Drazen Mokic says:

    Really enjoyed this, want to see more from you.

    That Simple HTML DOM Parser is just kickass.

  3. Ryan says:

    I’m gonna start using this for sure!!

  4. Caio says:

    Great Tutorial, love this app launcher.
    hahahaha the southern accent was pretty funny, gotta say…

  5. George Dina says:

    Didn’t knew about simple html dom parser – it’s a cool library and I will use it in future.
    Awesome video!

  6. martin says:

    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?

  7. Bob says:

    Do we need the powerpack to be able to run these?

  8. Doc says:

    This was a great tutorial, I learned a lot about the DOM Parser; however, for Lipsum Text I’ll stick to TextExpander snippet.

  9. Istvan Drahos says:

    Really nice, and useful tutorial! Thanks.

    • Author

      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

  10. Nuno says:

    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.

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.