Created
July 12, 2010 20:55
-
-
Save justin/473042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This script places a page number in the bottom left corner of each page. | |
tell application "PDFpenPro" | |
if (count documents) > 0 then | |
set pageCount to count (pages of document 1) | |
repeat with pageNumber from 1 to pageCount | |
set thePage to page pageNumber of document 1 | |
set theImprint to make new text imprint at end of imprints of thePage with properties {rich text:pageNumber as rich text, x position:36, y position:36, height:16, width:30} | |
set font of attribute run 1 of rich text of theImprint to "LucidaGrande-Bold" | |
end repeat | |
return pageCount | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment