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


Click here to return to the '10.5: Add date and time stamp to web receipt filenames' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Add date and time stamp to web receipt filenames
Authored by: Doc Drang on Sep 11, '08 11:16:32AM

This hint is exactly what I've been looking for. Thanks!

It might be useful to point out that the "tool" script is using hard tabs for the indentation, not spaces. If your text editor is set up like mine to insert spaces when the Tab key is pressed, the addition near Line 24 may cause an error. I speak from experience on this.

---
Doc Drang
http://www.leancrew.com/all-this



[ Reply to This | # ]
10.5: Add date and time stamp to web receipt filenames
Authored by: ptwithy on Sep 11, '08 11:58:19AM

Thanks for the hint about the tabs. That file is actually a mess. It is partly indented with tabs, partly with spaces, and since Python relies on whitespace for its block structure, you are really living dangerously if you don't edit this with an editor that can show you what whitespace really is!

Also, I just copied the folder from /Libary/PDF Services to ~/Library/PDF Services before I started playing with it. That way, if I do a clean install someday, I will still have my custom version.



[ Reply to This | # ]