Re: pdf workflow scripts and /Library/PDF Services folder
Re: pdf workflow scripts and /Library/PDF Services folder
- Subject: Re: pdf workflow scripts and /Library/PDF Services folder
- From: Graff <email@hidden>
- Date: Tue, 06 Jan 2004 02:50:01 -0500
There are a couple of ways to combine PDFs, some of them are listed or
linked to on this web page:
<
http://www.macosxhints.com/article.php?story=20030903113116961>
I'd suggest getting ghostscript and using it to combine via the "do
shell script" command. Probably the easiest way to get ghostscript is
to install it using Fink:
<
http://fink.sourceforge.net/>
Once you have ghostscript installed you could use the following script.
Careful with the line wrapping, some of these lines might be wrapped
by your mail program. I've indented the whole script by 2 spaces so
any line without 2 or more spaces at the start is probably a wrapped
line and should be combined with the line before it.
---------------
set sourceFileList to {}
set doneRepeating to false
repeat while doneRepeating is false
choose file with prompt "Select PDF files to merge" of type {"PDF
"} with multiple selections allowed
set sourceFileList to sourceFileList & result
display dialog "Do you wish to add in more PDF files to merge?"
buttons {"Done Adding", "Add More"} default button "Add More"
if button returned of result is "Done Adding" then
set doneRepeating to true
end if
end repeat
set posixList to {}
repeat with theFile in sourceFileList
set posixList to posixList & quoted form of POSIX path of theFile
end repeat
set {oldDelims, text item delimiters} to {text item delimiters, " "}
set sList to posixList as text
set text item delimiters to oldDelims
set mergeFile to (path to desktop as text) & "merge.pdf"
set mName to quoted form of POSIX path of mergeFile
do shell script "/usr/local/bin/gs -dNOPAUSE -dBATCH
-sDEVICE=pdfwrite -sOutputFile=" & mName & " " & sList
---------------
On Jan 5, 2004, at 11:43 PM, leo wrote:
hi there
i want to print pages to a growing file (which i eventually physically
will
print via a 2 pages per sheet option).
on the apple site i found http://www.apple.com/applescript/print
mentioning
the /Library/PDF Services folder.
on the website's screen shot are lots of entries in the print dialog
-- my
(self created) folder is empty. ;-) where do i get the wbesite's demo
applescript services from?
and does anybody known of a script putting multiple PDF files together
or
appending one PDF to another?
thanks and cheers,
leo
_______________________________________________
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.