• 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
Need help concatenating PDFs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help concatenating PDFs


  • Subject: Need help concatenating PDFs
  • From: "Rips Ethan J" <email@hidden>
  • Date: Tue, 29 Oct 2002 10:18:15 -0500
  • Thread-topic: Need help concatenating PDFs

Hello, all-

On Wednesday, October 17, 2001, Bob Kiolbassa wrote:

>This is from a large kernel of code posted to this AS digest some time ago.
>Unfortunately I have long since lost any note who from this list contributed
>the code. Drop the pdfs onto the icon and it will merge all pdfs into one by
>using the apha order of the files (as viewed in the Finder) you drop on it.
>This Script requires Acrobat 4.0 to work. Make sure neither Distiller or
>Reader is open when this is run. Not tested on Acro5.
>
>Hope this helps.
>
>-- -start script ----watch those line breaks. Save as an app, should be a
droplet
>on open fileList
> set theCount to (count each item of fileList)
>
set newFile to choose file name with prompt "Name your new PDF file?:"
>default name "Files" & theCount & ".pdf"
> tell application "Acrobat(tm) 4.0"
> activate
> end tell
> tell application "Finder"
> set fileList to (sort
fileList by name) as alias list
> set doc1 to name of item 1 of fileList
>
end tell
> tell application "Acrobat(tm) 4.0"
> open (item 1 of fileList)
with invisible
> set fileList to rest of fileList
> repeat with afile in
fileList
> tell application "Finder"
> set doc2 to name of afile
> end
tell
> set pageCount to count each PDPage of document doc1
> open afile
with invisible
> set pageCount2 to count each PDPage of document doc2
>
insert pages document doc1 from document doc2 starting with
>1 number of pages
pageCount2 after pageCount
> close document doc2 saving no
> end repeat
>
activate
> save document doc1 to newFile with linearize
> display dialog
"Finished."
> end tell
> activate me
>end open
>-- end script
I'm running Acrobat 5.0.5 on OS 9.2.2 & I need to concatenate a large number
of PDFs ASAP. I used the code above previously in the same environment & it
worked; now, when I really need it, it only opens each file, but does no
concatenation.

Can someone please help me with this? I need to get this job done ASAP.

Thank you.

Ethan
_______________________________________________
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: Need help concatenating PDFs
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Excel not recordable under 10.2
  • Next by Date: PDF FIles [Off topic?]
  • Previous by thread: Print Center activating
  • Next by thread: Re: Need help concatenating PDFs
  • Index(es):
    • Date
    • Thread