Question: Printing Without Dialog Boxes
Question: Printing Without Dialog Boxes
- Subject: Question: Printing Without Dialog Boxes
- From: Nick Matsakis <email@hidden>
- Date: Tue, 13 Feb 2001 13:48:35 -0500 (EST)
I'm trying to automate the process of converting some old WordPerfect and
Word files to PDF. Part of this process involves automatically printing
the files from the script. Ideally, I would want to write a routine which
would take a file alias as a parameter, and return a file alias for the
resulting postscript file, with no user intervention.
I have gotten as far as creating a desktop printer which prints
postscript files, and have written the following routine:
on PrintFile(theFile)
tell application "Finder"
print {theFile}
end tell
end PrintFile
When run, this routine launches the application that created the file and
issues the print event. This is fine, but then it pops up dialogs, and I
have to manually press return. There seems to be a way around this using
Laserwriter 8.7 as described in the following TIL:
http://devworld.apple.com/technotes/tn/tn1178.html
However, the TIL says that application developers would need to change
their programs to not show the dialog. Is there another way? The TIL
also says it is obsolete, but doesn't give any further pointers. Thanks
for any info.
Nick Matsakis