Batch TTX . . .
Stuart Sandler
Posts: 363
Hey All, I'm hoping one of you smart TTX users can give me a hand . . .
I need to run TTX on large folder full of fonts, just the basic OTF to TTX conversion . . . (to prepare for copyright filings, nothing sinister)
I'm on a Mac 10.6.8 and I am hoping some savvy Terminal user can advise the line of code I can use to make this happen.
Thanks kindly in advance and before you ask, I was unable to figure this out after some Google searches.
I need to run TTX on large folder full of fonts, just the basic OTF to TTX conversion . . . (to prepare for copyright filings, nothing sinister)
I'm on a Mac 10.6.8 and I am hoping some savvy Terminal user can advise the line of code I can use to make this happen.
Thanks kindly in advance and before you ask, I was unable to figure this out after some Google searches.
0
Comments
-
You can run most command line utilities in a for loop:
for i in ./*.otf ; do programName $i ; done
In the above loop programName will run for each OpenType font in the directory. So just replace programName with TTX and the appropriate flags/switches to get the output you need. Back up the directory first in case you accidentally blow everything up.1 -
If all you need to do is run ttx on each .otf file in the current directory, ttx handles multiple files. So, you could just do:
ttx *.otf
Then, there would be files like fontname.ttx produced for fontname.otf. ttx creates uniquely named output files, so if a .ttx file existed for that fontname, you would see fontname#1.ttx, for example.2 -
Thanks all! I sincerely appreciate the help! One question however is that all the fonts and font families are contained within their own folders inside the larger folder. Rather than dump them all into a single folder, is there some way I can affect them recursively?0
-
If you view the folder of font folders in list view in the Finder, tip down the disclosure triangle on all the folders to reveal their contents, and then select all of the fonts, but not the folders, you can drag all the font files at once into the Terminal window for ttx to process. (Note: You need to type ttx[space] in the Terminal window first.)0
-
Thanks Mark!0
-
And if you hold the option key while clicking the “expand” triangle of the parent folder, all the contained folders will be expanded at once.1
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 803 Font Technology
- 1K Technique and Theory
- 622 Type Business
- 444 Type Design Critiques
- 542 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 485 Typography
- 303 History of Typography
- 114 Education
- 68 Resources
- 499 Announcements
- 80 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 270 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports