• 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
Question: Printing Without Dialog Boxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Stopping the script until "Enter" is pressed?
  • Next by Date: Re: Accessing a Record by variable
  • Previous by thread: Re: Stopping the script until "Enter" is pressed?
  • Next by thread: Re: Question: Printing Without Dialog Boxes
  • Index(es):
    • Date
    • Thread