• 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: Replace cover page using applescript in Acrobat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace cover page using applescript in Acrobat


  • Subject: Re: Replace cover page using applescript in Acrobat
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 10 Mar 2010 18:40:27 -0500

You missed the first word of the filename.  Should be (document
"chapter ...") and (document "cover ...").

On Wednesday, March 10, 2010, Shane Stanley <email@hidden> wrote:
> On 11/3/10 8:11 AM, "Don Feldman" <email@hidden> wrote:
>
>> 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
>
> The replace pages command requires documents as parameters, but you're using
> file paths. You need to first open the documents, then refer the documents.
> Probably something like this:
>
> 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"
>     open alias docPgToBe_replaced
>     open alias SourceOfNewPage
>     replace pages document "9780071714921.pdf" over 1 from
> "9780071714921.pdf" starting with 1 number of pages 1
>
>
> --
> Shane Stanley <email@hidden>
> AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
>
>
>  _______________________________________________
> 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
>

--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Replace cover page using applescript in Acrobat
      • From: Shane Stanley <email@hidden>
References: 
 >Replace cover page using applescript in Acrobat (From: "Don Feldman" <email@hidden>)
 >Re: Replace cover page using applescript in Acrobat (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Replace cover page using applescript in Acrobat
  • Next by Date: Re: Replace cover page using applescript in Acrobat
  • Previous by thread: Re: Replace cover page using applescript in Acrobat
  • Next by thread: Re: Replace cover page using applescript in Acrobat
  • Index(es):
    • Date
    • Thread