PageMaker Print to File Success!
PageMaker Print to File Success!
- Subject: PageMaker Print to File Success!
- From: email@hidden
- Date: Wed, 12 Sep 2001 16:50:29 -0500
- Priority: normal
Don't know if anyone is interested, but, considering all the time and
trouble invested I'd be a lousy lister not to post my final script.
Thanks especially to "Hans" and Bryan for their extra efforts as well as
several others who supplied ideas that helped me understand my own needs.
My plan is to take the output .ps files into a Distiller watched folder
for later processing. I may still automate some aspects, and still have
work to do to enter metadata into the final PDFs, but I'm a happy camper.
-- Script to print all PageMaker files in a folder to .ps files
set foldertoprocess to (choose folder with prompt "FilesToConvert")
-- gets folder for file processing
tell application "Finder" to set filestoprocess to every file in
foldertoprocess
-- gets list of files in folder
tell application "Adobe PageMaker 6.5"
-- activates the most script-unfriendly application ever written
repeat with eachfile in filestoprocess
open eachfile
with timeout of 120 seconds
do script "Print 1, 0, -2, \"\"\".ps\"
close"
end timeout
end repeat
end tell
This outputs a .ps file with the same name as the original PM file. All my
original files were VERY consistent in file names, print settings, etc. so the
script is fairly simple and straightforward. But it does work - Thanks
Jerry me