

Change the totalPages to the number of pages, and authorName to whatever you want that field set to in the pdf.Tell application "System Events" to keystroke authorNameĮnd tellDid you notice how we even took away the sides of our sexy ASCII art just so you would have hassle-free copy+paste? Tell application "System Events" to keystroke theIncrementValue as string Tell application "System Events" to keystroke return

Tell application "System Events" to keystroke theIncrementValue + 5 as string Tell application "System Events" to keystroke tab

Tell application "System Events" to keystroke thisValue as string Tell application "System Events" to keystroke "p" using command down Repeat with theIncrementValue from startPage to totalPages - 1 by 5
