Mac OS 10.4 has a nice feature called “Automator”, which is an easy-to-use scripting program that you use by dragging modular “actions” into whatever order and then setting options, thus creating a “workflow”.
It’s pretty good for certain things. I use it, for example, to back up my iTunes library file (the iTunes index file, essentially) to my iPod — using a workflow that takes the library, zips it, copies it to the iPod, and finally ejects the iPod.
One of the built-in workflows is called “Save PDF to Web Receipts folder”. It’s set up to show up in the standard OS print dialog. The idea is that when you buy something online, and get that “this is your receipt” page, you can “print” it to a PDF in a particular folder, rather than physically printing out a losable paper copy. Pretty slick.
..except that you can’t name it. It automatically gives the PDF a name matching the title of the receipt web page, which all too commonly is something totally meaningless like “Your Receipt”, or worse, “Thank You!”
Apple kindly makes this a workflow that you can actually open and change in Automator, so I set to trying to figure out how to allow the user to rename the file as it saves. Irritatingly, the built-in “rename file” action doesn’t simply give you an option to specify a name, so I ultimately found the answer with the “Number Sequentially” action.
As they say, a picture is worth a thousand words:
It goes in either /Library/PDF Services/ or ~/Library/PDF Services/