I am trying to improve the coarse shell script I am using to use TTFAutohint in batch.
Currently I am doing:
for file in /Users/RamiroLaptop/Desktop/03-TTFAutohint/*
ttfautohint -v -f latn -n -w G "$file" "$file-HINTED.ttf"
mv /Users/RamiroLaptop/Desktop/03-TTFAutohint/*-HINTED.ttf /Users/RamiroLaptop/Desktop/03-TTFAutohint/Hinted-Fonts
But my method for saving the output is very clumsy: I am renaming the files and then moving them to a new directory.
I would like to just save the output in the new directory, but all my attempts have failed.
Can anyone help me with this?
Thanks in advance.
Obviously I can't get the dynamic output address right.
if [ -f $file ] then
this allows your script to do ttc and dfont, for example. Items not ending with ttf.