<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: OSX:Changing the &#8220;Web Receipts&#8221; Folder</title>
	<atom:link href="http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/</link>
	<description>Things I think are cool that probably aren't</description>
	<pubDate>Tue, 06 Jan 2009 04:15:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: pablo</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/#comment-36923</link>
		<dc:creator>pablo</dc:creator>
		<pubDate>Mon, 15 Sep 2008 01:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-36923</guid>
		<description>Sure. Here are the two changes.
1) add "import datetime" (this can replace the previous "from
datetime import date")
2) replace "date.today()" with:
"datetime.datetime.now().strftime("%Y%m%d")"

Resulting in:
title = "%s - %s" % (datetime.datetime.now().strftime("%Y%m%d"), title)

You can also compose other arbitrary date formats with this method.</description>
		<content:encoded><![CDATA[<p>Sure. Here are the two changes.<br />
1) add &#8220;import datetime&#8221; (this can replace the previous &#8220;from<br />
datetime import date&#8221;)<br />
2) replace &#8220;date.today()&#8221; with:<br />
&#8220;datetime.datetime.now().strftime(&#8221;%Y%m%d&#8221;)&#8221;</p>
<p>Resulting in:<br />
title = &#8220;%s - %s&#8221; % (datetime.datetime.now().strftime(&#8221;%Y%m%d&#8221;), title)</p>
<p>You can also compose other arbitrary date formats with this method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yves</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/#comment-36918</link>
		<dc:creator>Yves</dc:creator>
		<pubDate>Sun, 14 Sep 2008 15:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-36918</guid>
		<description>Thanks for the tip!
Is there a way the date could be without the dashes (20080914) ?</description>
		<content:encoded><![CDATA[<p>Thanks for the tip!<br />
Is there a way the date could be without the dashes (20080914) ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/#comment-36823</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 17 Aug 2008 13:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-36823</guid>
		<description>HI thanks for this. All goes well until I try to implement the addition of date to the pdf is this correct:
import os
import shutil
import sys
from datetime import date
def safeFilename(filename):
    filename = filename.lstrip('.')
    filename = filename.replace(os.path.sep, '-')
    if len(filename) == 0:
        filename = "Untitled"
    elif len(filename) &#62; 245:
        filename = filename[0:245]
    return filename


def main(argv):

	(title, options, pdfFile) = argv[0:3]
title = "%s - %s" % (date.today(), title
	destDirectory = os.path.expanduser("~/Archive/Receipts/")
...</description>
		<content:encoded><![CDATA[<p>HI thanks for this. All goes well until I try to implement the addition of date to the pdf is this correct:<br />
import os<br />
import shutil<br />
import sys<br />
from datetime import date<br />
def safeFilename(filename):<br />
    filename = filename.lstrip(&#8217;.')<br />
    filename = filename.replace(os.path.sep, &#8216;-&#8217;)<br />
    if len(filename) == 0:<br />
        filename = &#8220;Untitled&#8221;<br />
    elif len(filename) &gt; 245:<br />
        filename = filename[0:245]<br />
    return filename</p>
<p>def main(argv):</p>
<p>	(title, options, pdfFile) = argv[0:3]<br />
title = &#8220;%s - %s&#8221; % (date.today(), title<br />
	destDirectory = os.path.expanduser(&#8221;~/Archive/Receipts/&#8221;)<br />
&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
