text: -- Folder Action Print Server, created 2004 by Dave Howell
  -- Placed in the Public Domain.
  on adding folder items to PrintFolder after receiving FilesToPrint
  -- FilesToPrint will contain a list of file references to the added items
  repeat with TheFile in FilesToPrint
  set FileInfo to info for TheFile
  if name extension of FileInfo is "ps" then --must make it into a PDF
  -- get the Unix-style path of the file to convert:
  tell application "System Events" to set FilePath to POSIX path of TheFile
  do shell script "pstopdf \"" & FilePath & "\""
  else if name extension of FileInfo is "pdf" then
  tell application "Printer Setup Utility" to open {alias (TheFile as string)}
  end if
  repeat while (busy status of (info for TheFile))
  delay 1
  end repeat
  tell application "Finder" to delete TheFile
  end repeat
  end adding folder items to
  I | # ]
  Thank | # ]
  Very elegant script, and much better than the one I had cobbled together. One small point: Under Panther, you don't need any of the code that converts .ps files into .pdf. Panther does it automatically when printing. So you can remove the if/else/endif sequence except for the one line that tells the Printer Setup Utility to open the file.
  I used the hint for printin from Finale in Classic to a HP PSC 2410. It worked but I can only get it to print at extremely high quality (i.e. extremely slow) which is impractical for printing out drafts. I tried changing the setting is another application but it didn't help. Any suggestions?
  Thanks,
  Josh
  Visit other IDG sites: