Mac – Automating document creation in Pages

automationmacpages

So my actual question is broader but I'll focus on a specific example to start:

I created a Pages document with some sample text displayed in each of the available fonts for comparison. To do this I ended up having to copy/paste the text over and over, manually selecting a different font for each instance.

How would I go about automating this? Through the Terminal? And, more broadly, how do I automate repetitive tasks like this in any application? Will it depend on the application I'm using or is there a general solution for most cases?

Thanks for your help

Best Answer

As a graphic designer, a huge part of my jobs are logo recreation. Most of the time, these logos have text that I need to identify what fonts are used. I actually wound up creating a small AppleScript application for auto scrolling in FontBook. For my purposes, I usually have the original design with their font on one side of the screen and Font Book window right next to it so I can visually compare.

enter image description here

I actually posted a question on stackoverflow regarding the script I wrote (which nobody replied to LOL) Applescript for auto scrolling in Font Book

In that post, I have the full AppleScript code with a complete explanation for all of its functions. It's a great little script for font comparisons and such. Maybe it could be of some use to you.