Dummy text at your fingertips

Sometimes I find myself in need of more than just the block of Lorem Ipsum text that magically appears from typing “lorem” and hitting tab in Textmate. Sure, I could use a handy widget, but flipping back and forth from the dashboard gets tiresome after a few iterations.

A textmate command

With a few lines of ruby, I built a rough Textmate command that prints a random sentence from a paragraph of filler text. It looks like this:

#!/usr/bin/env ruby -wKU

# Paragraph of sentences to pull from
copy_to_use = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec leo tellus, ornare ac, molestie eu, suscipit non, urna. Sed in felis. Vivamus justo dui, tempus vel, blandit sed, placerat sit amet, nunc. Praesent rhoncus quam nec risus. Etiam eu nulla eu sapien ultrices hendrerit. Nulla et metus ac ipsum vulputate varius. Nullam nec mauris nec nulla ornare fermentum. In a libero. Aliquam erat volutpat. Ut ornare. Ut nec libero a metus posuere tincidunt. Sed sed arcu. Maecenas lobortis, massa sit amet convallis eleifend, neque erat commodo sapien, ut varius dolor quam vitae lorem. In tellus. Nam eu dolor. Aliquam erat volutpat. Nulla eu arcu. Mauris dignissim, neque egestas rhoncus feugiat, magna diam varius elit, ut hendrerit diam sapien vel velit. Donec lobortis. Aenean mattis turpis sed odio. Donec suscipit lectus quis felis. In hac habitasse platea dictumst. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam interdum. Nulla facilisi. Donec facilisis. Phasellus tristique. Vestibulum pellentesque felis nec dui. Mauris dolor odio, mollis et, sollicitudin vitae, facilisis sed, enim. Duis velit. Nullam a augue. Aliquam erat volutpat. Aenean ut magna nec dui congue congue. Maecenas sagittis nisl ut neque. Nam facilisis urna sed purus luctus congue. Morbi interdum, ligula non ullamcorper faucibus, purus ipsum fermentum neque, in viverra nisi ante at turpis. Ut molestie gravida sapien. "

# Split by period-space into an array
sentence = copy_to_use.split(". ")

# Randomize the array
random_sentence = sentence.sort_by{ rand }

# Pull a sentence off the top and punctuate
print random_sentence[0] + "."

To add this command, paste the above into a new command in the bundle editor, setting input to “none”, output to “insert as text”.

bundle settings

Choosing a tab trigger of your desire will get you a command that is ready to spit out random nonsensical sentences.

System wide lorem ipsum – it’s everywhere!

Shortly after that was done, I came across this post from HeySage regarding using tools like TextExpander to generate static blocks of text system wide. This would be similar to TextMate’s lorem snippet mentioned above, but would let you put the text in browsers and other applications. But what if I wanted something a little more dynamic?

The latest version of TextExpander has Applescript support. By saving the above command as a file, and setting the snippet content type to “Applescript” in TextExpander, we can put the do shell script command in Applescript to good use:

do shell script "/usr/bin/ruby  /Library/ScriptingAdditions/ipsum.rb"

I had to hunt a bit to find out how to set the content type, but after that it looked something like this in TextExpander:

textexpander snippet creation screen

For lack of a better place, I stuck the script file in the ScriptingAdditions folder.

Caveat dolor

It’s important to remember that using fake text has it’s downsides. In their book Getting Real (if you haven’t read it, I highly recommend it), the folks at 37signals give some good reasons why you shouldn’t use lorem ipsum text:

“Dummy text means you won’t see the inevitable variations that show up once real information is entered. It means you won’t know what it’s like to fill out forms on your site. Dummy text is a veil between you and reality.”

Just because you can insert random string of text everywhere, it doesn’t mean you should. With great power comes great responsibility (what, you don’t take your values from people in tights?).

That said, dummy text can be a valuable tool. It has certainly been helpful, even by it’s very existence, in illustrating the power of other tools, such as those discussed here.


  1. Gravatar Icon
    Posted August 14, 2014 at 11:57 am | #

    If you desire to grow your know-how only keep visiting this site and be updated with the most recent
    gossip posted here.

  2. Gravatar Icon
    Posted August 22, 2014 at 6:38 pm | #

    There is a QWERTY keypad present below the main top panel with 5 rows of keys.

    Ross is completely frustrated over this and obsesses over convincing her of its validity.

    There are also different kinds of pigs for different levels
    while their number increases as the player level increases.

  3. Gravatar Icon
    Posted August 30, 2014 at 10:24 am | #

    Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your
    weblog? My blog site is in the very same area of interest as yours and my users would certainly benefit from a lot of the information you present here.
    Please let me know if this okay with you. Many thanks!

  4. Gravatar Icon
    Posted September 21, 2014 at 5:59 am | #

    It’s genuinely very complicated in this active
    life to listen news on TV, so I just use world wide web for that reason, and take the
    most up-to-date news.

  5. Gravatar Icon
    Posted September 23, 2014 at 1:25 pm | #

    If some one wishes expert view regarding blogging then i suggest him/her to go to see this web site,
    Keep up the fastidious job.

  6. Gravatar Icon
    Posted October 22, 2014 at 12:27 am | #

    After selecting game platform (COMPUTER or Xbox 360), subsequent
    step is getting into your game ID. Subsequent two options are
    extremely necessary to your security, as their proper use prevents any doable problems or, in the worst case, bans for utilizing World of Tanks

  7. Gravatar Icon
    Posted October 22, 2014 at 2:09 am | #

    Mutants genetic gladiators hack android mutant genetic gladiators hack gadget v3
    1 mutants genetic gladiators hack working mutants genetic gladiators working hack working
    mutants genetic gladiators hack mutants genetic gladiators cheats on fb How
    To Use Mutants Genetic Gladiators Hack Cheat Machine mutants genetic
    gladiators hack cheat fb mutants genetic gladiators facebook hack cheat mutants genetic
    gladiators 2014 hack cheat, fb mutants genetic gladiators hack cheat Mutants Genetic
    Gladiators cheat mutants genetic gladiators cheats gold mutants genetic gladiators
    hack cheat working mutants genetic gladiators
    working hack cheat working mutants genetic gladiators
    hack cheat mutants genetic gladiators hack apk mutants genetic gladiators hack android no survey Run M.

  8. Gravatar Icon
    Posted February 27, 2015 at 5:39 am | #

    · Geographic risk – Risks associated with properties found in a specific geographic region. When you purchase a home and you sign your
    documents at loan closing, one of the documents that you are
    going to sign is a deed for your home, but what is the difference between a deed and title to
    a house. ll see that it congratulates them on completing the
    process, re-emphasizes the benefits of doing business with you, and asks for referrals.

    It’s a sign to the seller that you can afford the house and that the bank is already behind
    you in terms of the buy. But that is not a reason to blame all of them for the mortgage meltdown.

  9. Gravatar Icon
    Posted May 15, 2015 at 1:02 am | #

    Hiya very cool website!! Man .. Excellent
    .. Wonderful .. I’ll bookmark your site and take the
    feeds additionally? I’m happy to seek out so many useful info here within the put up, we
    want develop more techniques in this regard,
    thanks for sharing. . . . . .

  10. Gravatar Icon
    Posted July 7, 2015 at 6:06 am | #

    The major portion of population who plays these video games are youth and children. The Metacritic score may
    help you learn what to avoid. In major cities in the United States,
    the number of people who have reportedly fallen victim
    of this scam is on the rise.

  11. Gravatar Icon
    Posted January 12, 2016 at 5:13 am | #

    Privacy and security wise, this is the most complete
    My Monsters cheats for diamonds that are boundless you’ll be able to get.

  12. Gravatar Icon
    Posted August 29, 2017 at 8:36 pm | #

    Hello,I log on to your blog named “Dummy text at your fingertips » Justin Henry’s green galoshes” daily.Your writing style is witty, keep up the good work! And you can look our website about love spells.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You can follow any discussion on this article with the RSS feed for this post.

About this article

Green Galoshes is a weblog written by Justin D. Henry. This entry was published on or around October 25, 2007.

Categories & Tags

This article is filed under code. It is further described as , , , , , , , , .