Bad AppleScript: Subroutines and file paths

When I learned to program, programs had line numbers. You’d type GOTO 10 or GOSUB 5000 and that would control the flow of your program. When I first saw a programming language that didn’t have line numbers–I think it was Pascal—I couldn’t comprehend it.

Well, we’ve come a long way. I can’t type GOSUB 5000 anymore, but subroutines can be incredibly valuable in simplifying even Bad AppleScripts.

Many of my colleagues and I write our articles for Macworld in Bare Bones Software’s BBEdit text editor, using the Markdown plain-text markup language invented by John Gruber. One of the nice things about working on the Web is not having to standardize on any single app or even one style—in the end, all that matters is that we paste our story into our Web-based posting tool in HTML format.

To read this article in full or to leave a comment, please click here