• 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: Acrobat script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Acrobat script


  • Subject: RE: Acrobat script
  • From: "Wadson, David" <email@hidden>
  • Date: Thu, 6 Mar 2003 16:12:21 -0500

For the "insert pages" command, you need to use the NAME of the document
(eg. "vdfx.pdf"), and not the reference or file path (i.e "FWB 6
GB:49067CustSerProf:vdfx.pdf")

> ----------
> From: Rick Norman
> Sent: Thursday, March 6, 2003 3:18 PM
> To: email@hidden
> Subject: Acrobat script
>
> Can someone tell me why this little script will open the files indicated
> but
> when it gets to the line to actually insert the pages it tells me (by
> name)
> that it can't get the file. Could it have to do with the version? On an
> earlier post 2-4 weeks ago someone on the list pointed another to the
> "Acrobat Interapplication Communication Reference" which is an absolute
> must
> to script Acrobat, but the documentation refers to Acrobat 5 and I'm still
> using 4.0. Anyway, script follows.
>
> set destDocument to "FWB 6 GB:49067CustSerProf:vdfx.pdf" as string
> set sourceDocument to "FWB 6 GB:49067CustSerProf:vdfy.pdf" as string
> set afterPage to 1
> set firstPage to 1
> set numPages to 1
> tell application "Acrobat 4.0"
> activate
> open file destDocument -->this works
> open file sourceDocument -->this works
> insert pages document destDocument after 1 from document sourceDocument
> starting with 1 number of pages 1-->this returns: Can't get file "FWB 6
> GB:49067CustSerProf:vdfx.pdf"
> end tell
>
> Thanks in advance for any help
> Rick
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Acrobat script
      • From: Rick Norman <email@hidden>
  • Prev by Date: Re: Command to exit script immediately?
  • Next by Date: Re: {default:1} compiles to {default item:1}?
  • Previous by thread: Acrobat script
  • Next by thread: Re: Acrobat script
  • Index(es):
    • Date
    • Thread