Re: about PDFpenPro
Re: about PDFpenPro
- Subject: Re: about PDFpenPro
- From: Christopher Stone <email@hidden>
- Date: Fri, 17 Mar 2017 17:33:18 -0500
Hey Yvan,
I have the paid version of PDFPenPro.
When I create a new blank document by hand I get exactly the same error than the one I get with the script.
Interesting. Very good catch!
I don't see a way to make a new 1 page document via script, but I'll inquire.
If I create a new one page document, I get a document with a watermark which saves flawlessly.
Mine saves just fine manually – but balks with permission problems if I try to save via AppleScript.
I didn't have file before the path...
Hmm. Your script worked well 3-4 times and then stopped working with permission errors...
Bah!
Okay – this works without issue.
---------------------------------------------------------
set savePath to (path to desktop as text) & "test.pdf"
do shell script "touch " & quoted form of POSIX path of savePath
my createOnePageBlank()
tell application "PDFpenPro" save document 1 in file savePath end tell
--------------------------------------------------------- on createOnePageBlank() tell application "System Events" to tell process "PDFpenPro" set frontmost to true keystroke "n" using {command down} end tell end createOnePageBlank ---------------------------------------------------------
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden