Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Using PDF Services, revisited' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using PDF Services, revisited
Authored by: Jason P on Dec 29, '04 01:04:02PM

I'm total new to scripting and am copying and pasting and referencing a few docs here and there to get what I want to happen, so please take baby steps with me in any reply.

My question is how do I take the script for saving a PDF to a folder, like "Receipts", and get it to NOT overwrite another PDF of the same name? Lets say I buy a lot of things from a site whose receipt page has a front window named "item receipt", and I simply want an elegant automatic way of the file getting appended with some sort iterative suffix prior to the .pdf if there already exists a file of the exact same name? I suppose it doesn't have to be appended prior to the .pdf, but that would be good. The Finder does this when saving Safari downloads. If you duplicate a download it simply appends a number.

Thanks for any help.

[ Reply to This | # ]