Recently, I came across the topic of sizing text characters to exact physical heights, something that requires a bit more effort than you might expect—or a script. Specifically, a script written by Gerald Singlemann, and linked in this post. The script was “ancient” having been written over a decade ago, but I was willing to see if it still worked in InDesign 2020.
So I downloaded it, installed it, and ran it.
And I got an error.
I saw right away that the exclamation point was simply in the wrong place. It needed to come right before the equals sign. So I moved it, saved the file, re-ran the script…and got another error.
It was the same error, but at least it was on a different line number (99).
So the script had gotten past the line I fixed. Hooray for small victories! So I repeated the same process of tweaking the code, saving, and re-running the script. And this time it worked!
Just having Peter’s book made all the difference. First, it gave me the confidence to try, even as a scripting ignoramus. And then I found the answer very quickly, just by searching. Of course I did not learn how to write code or troubleshoot it like an expert would. But the fact is, in 5 minutes I went from having a broken script to a working one, with the help of the book. So I think this little episode was instructive because it proved that to accomplish an otherwise impossible task, sometimes all you need is a little guidance and the willingness to give it a shot.
That way, you can save it in the correct format and not have to worry that it got mangled somewhere along the way to your computer.