Inserting pages into Adobe Acrobat...
Inserting pages into Adobe Acrobat...
- Subject: Inserting pages into Adobe Acrobat...
- From: David Crowe <email@hidden>
- Date: Thu, 31 Oct 2002 09:14:20 -0700
I am trying to insert all pages from all selected PDF files into the
first file (e.g. merge) using Adobe Acrobat 5.
I have one big problem -- I can't get "insert pages" to work.
A secondary problem is how to find the last page number, neither the
'insert pages' command seems to have any support for this, nor can I
find a syntax that directly finds the last page. Executing a 'goto
page' for 99999 and then finding the page number seems to be the best
that I can do.
Any suggestions, particularly on how 'insert pages' can be made to
work would be appreciated.
- David Crowe
on MergePDFFile(FileList)
tell DCroweUtilities
set FileList to ASCII_Sort(FileList)
end tell
tell application "Acrobat 5.0"
activate
open first item of FileList
repeat with aFile in FileList
if aFile first item of FileList then
tell PDF Window 1
goto page 99999 -- i.e. last page
set LastPageNumber to number
insert pages after
LastPageNumber from aFile
end tell
end if
end repeat
end tell
end MergePDFFile
_______________________________________________
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.