

Make new imprint with properties default button "OK" giving up after 30) Set ypos2 to 0.05 * (height of page pageNumber) Set xpos2 to 0.9 * (width of page pageNumber) Repeat with pageNumber from 1 to pageCount - 4 Repeat with theFile in finderSelectionList Set thePathTampon to POSIX path of "/Users/paul/Library/Containers//Data/Documents/tampon.png" Set thePathSignature to POSIX path of "/Users/paul/Library/Containers//Data/Documents/signature.png" Set thePathParaphe to POSIX path of "/Users/paul/Library/Containers//Data/Documents/paraphe.png" these files need to be in the Containers library because of sandboxing
#Pdfpen signature update
update these to your own Initials, Signature and Stamp If length of finderSelectionList = 0 thenĭisplay dialog "No files were selected in the Finder!" Tell application "Finder" to set finderSelectionList to selection as alias list Use AppleScript version "2.4" - Yosemite (10.10) or later signature stuff helped by sandboxing advice from Dr. # Tags: finder and KM interaction based on initial script by here # Task: Initial every page and sign last page of selected document If you have the user select the resource (as in the pdfpenpro example script "insert imprint image" that was the basis of my own script), then it can be anywhere.

It'll just do nothing and let you wonder what you've done. In a sandboxed app, if you try to access external resources (such as an image file) with no user interaction, then this resource has to be within the "container" library of the app, otherwise your script will do nothing. There's a particular twist that I learned courtesy of Dr Drang ( here) - and which may be of interest to others trying to script apps: I've developed a small routine in AppleScript which I call using a KM macro, and others may find interesting. This saves me hours of a "print" - "sign" - "scan" routine, but can still be tedious: open, import image, move image around, copy, paste, etc.
#Pdfpen signature pdf
Because my company and most of our clients are only half way to a fully digital process, I need to "sign" many pdf documents a week by adding an image of my signature and initials.
