PDFpen and PDFpenPro come with a set of useful AppleScripts that appear on the AppleScript menu when you run PDFpen or PDFpenPro. You can use and modify these scripts for your needs.
The supplied scripts perform bulk repetitive actions on one or more PDFs: almost always stuff that you could do by hand but which would be tedious and prone to error.
The PDFpen family of applications stores its AppleScripts in the Application Support folder in your Home directory. The scripts are placed there the first time you run the application.
Specifically, PDFpen stores its AppleScripts in