• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: about PDFpenPro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
---------------------------------------------------------

--
Take Care,
Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: about PDFpenPro
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Quoted-Printable Perl Module
  • Next by Date: Re: about PDFpenPro
  • Previous by thread: Re: Saving a New Document with PDFPenPro
  • Next by thread: Re: about PDFpenPro
  • Index(es):
    • Date
    • Thread