Printing files in OS X is easy, and there are often a number of ways to do it. Personally, I would either print while the document is open or I would drag and drop a bunch of files from the Desktop or Finder to the Desktop printer. Well, there is yet another way to do it without dragging and dropping files on the desktop printer and without having documents open.
There is a contextual technique to print explained on Apple's web site: Printing from the Desktop (Without a Desktop Printer. I read this, and it raised my curiosity. At first thought, this is a good tip, but you have to press several keys before you get to the Printer Setup Utility where you can print your documents. Then I thought that this same feature would be neat if you can do the same thing at the stroke of a hotkey. A one-stroke hotkey to print multiple documents, without drag and drop, and without a desktop printer; how neat is that!?
Inspired by one of my Mac friends, I thought about writing an AppleScript that does the same thing without all the hassle of clicking a bunch of buttons to get to the Printer Setup Utility application. This AppleScript that I put together does the same thing as described in the above-linked article. Copy this script, save it as an application without the startup screen, give it a hot key in your favorite switching utility such as Butler, QuickSilver, DragThing, etc.
Select the documents in the Finder or the desktop that you want to print, hit the hotkey, and they will automatically print for you without opening up the documents. This is a good technique if you just want to quickly print small reports or daily log files. You can also you the script from the search results of the Finder. You will achieve the best results if you already have a default printer selected. It will print the documents with the printer's default settings such as name of printer, orientation, copies, etc. If you are into the Terminal, you can print the files the same way using this command:
open -a /Applications/Utilities/Printer\ Setup\ pathtofiles
Using the open shell command with the Printer Setup Utility in the Terminal is not published on this site, so this is yet another way to print documents without drag and drop and opening up the files. So now you have yet another tough choice; print either using drag and drop, or print via hotkey. Choose your poison.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050410164636852