Grabbing Lipsum Text with Alfred
A new day, a new script. This one was an idea from @maxtofa. The idea was to pull generated lipsum text from lipsum.com, and copy it to the clipboard, with Alfred. After looking at it, compared to some of the other sites I’ve parsed, this one is simple!
Download Link: Lipsum
The linked archive contains two files. One is a library used to parse html with php, and the other is the php script that parses user input, posts it to lipsum.com, and grabs the result. Extract these two files to a folder somewhere. Then create a new Terminal command script in Alfred. Set the title and description to your liking. Set your keyword to ‘lipsum’ or whatever you want. For the command, we’re going to use some command line php. Here’s the command:
php -f <extracted path>/script.php — {query} | pbcopy
Make Sure that you set the script up to backslash escape quotes and spaces. Otherwise, Alfred won’t pass the second parameter to the script, and it will default to only giving back words (no paragraphs, bytes, lists)

That’s it. Fire up Alfred, type in the keyword, and tell it what you want.
Usage:
lipsum 5 w (generates 5 lipsum words)
lipsum 8 p (generates 8 lipsum paragraphs)
lipsum 3 b (generates 3 bytes of lipsum)
lipsum 4 l (generates 4 lipsum lists)
I also have Alfred throwing a Growl notification to show success.
