The
Public
Library
of Chez Luc
Call Number
323.21. LC-2

Title
Adding the calldash variable

Author
Luke Carter

Category
Personal

Type
Automation

Tags
AppleScript, The Public Library of Chez Luc

About
During the build process of my web site, I discovered that my anchor links were not working. It was due to the fact I was trying to use the call number, which included periods, as the value for the href attribute. I discovered that dashes worked, so needed to add a value that mirrored the call number, but with dashes. It's possible do this with via terminal with grep and perl commands, but my knowledge of those frameworks are not at the expertise level.

I used AppleScript to add the additional line of code I needed on hundreds of markdown documents. This video documents the process from start to finish.