<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<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, 07 Feb 2012 20:08:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anders</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/comment-page-1#comment-37032</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Tue, 05 Apr 2011 16:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-37032</guid>
		<description>Hi this was great help... however, I am using a non-English language version and I thought I just point out, that the only difference to the above instructions is NOT to delete the Resources folder, and instead go in there, find the language(s) you're using, and change the CFBundleName (item 6) to your localized version(s). 

Maybe you can do that without the Resources folder, but will it work with extended character-sets?</description>
		<content:encoded><![CDATA[<p>Hi this was great help&#8230; however, I am using a non-English language version and I thought I just point out, that the only difference to the above instructions is NOT to delete the Resources folder, and instead go in there, find the language(s) you&#8217;re using, and change the CFBundleName (item 6) to your localized version(s). </p>
<p>Maybe you can do that without the Resources folder, but will it work with extended character-sets?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordachio</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/comment-page-1#comment-37029</link>
		<dc:creator>Jordachio</dc:creator>
		<pubDate>Wed, 08 Dec 2010 21:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-37029</guid>
		<description>Awesome tip. Very clear instructions. Worked perfectly.</description>
		<content:encoded><![CDATA[<p>Awesome tip. Very clear instructions. Worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/comment-page-1#comment-37026</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 01 Mar 2010 21:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-37026</guid>
		<description>Thanks!! This worked perfectly in my Snow Leopard MBP.</description>
		<content:encoded><![CDATA[<p>Thanks!! This worked perfectly in my Snow Leopard MBP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OSX: Changing the &#8220;Web Receipts&#8221; Folder</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/comment-page-1#comment-36997</link>
		<dc:creator>OSX: Changing the &#8220;Web Receipts&#8221; Folder</dc:creator>
		<pubDate>Tue, 06 Jan 2009 15:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://pablo.averbuj.com/?p=166#comment-36997</guid>
		<description>[...] OSX: Changing the &#8220;Web Receipts&#8221; Folder [...]</description>
		<content:encoded><![CDATA[<p>[...] OSX: Changing the &#8220;Web Receipts&#8221; Folder [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablo</title>
		<link>http://pablo.averbuj.com/2008/04/14/osxchanging-the-web-receipts-folder/comment-page-1#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-page-1#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-page-1#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) &gt; 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>

