Replace cover page using applescript in Acrobat
Replace cover page using applescript in Acrobat
- Subject: Replace cover page using applescript in Acrobat
- From: "Don Feldman" <email@hidden>
- Date: Wed, 10 Mar 2010 16:11:10 -0500
- Importance: normal
- Priority: normal
- Thread-topic: Replace cover page using applescript in Acrobat
Title: Replace cover page using applescript in Acrobat
I tried replacing a cover page in a PDF document with the following code but got a "doesn’t understand the replace pages message." What am I not getting here?
Eventually, I'd like to fill a folder with new covers and have them wind up replacing the covers of PDF files which would be page 1 with covers that have the same file name. This is my starting point.
tell application "Adobe Acrobat Pro"
set docPgToBe_replaced to "Macintosh HD:Users:don_feldman:Desktop:Switch_Chapter_ Covers:chapter PDF:9780071714921.pdf"
set SourceOfNewPage to "Macintosh HD:Users:don_feldman:Desktop:Switch_Chapter_ Covers:cover PDF:9780071714921.pdf"
replace pages docPgToBe_replaced over 1 from SourceOfNewPage starting with 1 number of pages 1
save docPgToBe_replaced
end tell
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.
_______________________________________________
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