Posts tagged ‘perl’

Sorting by parts, redux

I got some nice feedback on my “Sorting by parts” post from a few days ago. Enough, I thought, to write a new post instead of just updating the old one. Recall that all of this stems from T.J. Luoma’s original. The idea was to sort a list of domains, like foo.tjluoma.com a.luo.ma bar.luo.ma b.tjluoma.com…


Code archaeology

When I returned to BBEdit last year after several years as a TextMate user, I found the Scripts and Text Filters menus filled with entries left over from 2005: little scripts that I’d written for some purpose or another—many of them clearly experimental or unfinished. They’d been sitting in the subfolders of BBEdit’s Application Support…


Scripts for WordPress and BBEdit, Part 3

If you write a lot of helper scripts that you come to depend on, you’ll probably come to realize how interdependent they are. They don’t all get written at once, of course, so they kind of accrete onto your working environment—written in whatever language seems the most appropriate at the time and saved wherever convenient.…


Renaming files

There’s been a lot of talk about Name Mangler today, both because a new version just came out (at a temporarily reduced price) and because some guy has been comically threatening1 Many Tricks with legal action. Name Mangler is a file renaming application. and it looks both powerful and easy to use, but I think…


Column to list

In last night’s post, I mentioned that often need to get a column of values out of a spreadsheet and turn them into a Python list. I’ve been doing that through a combination of copy-and-paste and regex find-and-replace in TextMate. Today I made a bundle with a couple of commands that do all the work…


More Address Book scripting

I’m still cleaning up my Address Book in preparation for a large mailing to my company’s clients. Today I wrote a couple of scripts, one in AppleScript and the other in Perl, to make address labels. I already had a script for printing address labels, but it’s meant for Avery 5164 labels, the big ones…


Dissociated clipboard

When I read Michael Bérubé’s analysis of a silly young right-winger’s article on feminism, my first thought was that he’d used some version of Dissociated Press to produce it. Then I thought maybe that was how the original article had been written. Either way, I had make a TextExpander snippet for generating that kind of…


Why I left Perl

OK, I suppose I really haven’t left Perl; I have many scripts written in it that I still tweak when I find a bug or, more often, want to add a feature. And I’ll even write a new script in Perl if it has a distinctly better library for the task. But it hasn’t been…


Mechanics lipsum

In yesterday’s Back to Work, during the commercial for Smile Software and TextExpander, Merlin Mann talked about a snippet he uses that inserts a specially-crafted lorem ipsum that’s exactly 500 characters and 100 words long. Most people use lorem ipsums (or lipsums) as placeholder text when designing the layout of a publication or web site.…


Why Python?

A reader1 asks: It seems like everywhere I look people are pushing the Ruby programming language… What reasons are you using Python? Is it because of certain characteristics of the language itself or because you are more familiar with it (due to coming from a Perl background)? A fair question, and I’m going to pretend…