[Tutor] Copy file function works, but not with adding the date copied

Marc Tompkins marc.tompkins at gmail.com
Fri Feb 13 21:10:05 CET 2009


On Fri, Feb 13, 2009 at 11:35 AM, Marc Tompkins <marc.tompkins at gmail.com>wrote:

> On Fri, Feb 13, 2009 at 11:11 AM, Alan Gauld <alan.gauld at btinternet.com>wrote:
>
>>
>>> {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf440
>>>
>>
Here's a quick-and-dirty way to do what (I think) you want to do:

Skip the first curly brace ("{") - find the next one.  Just before it,
insert a space + the datestamp text.  That's it.  Now if you open the RTF
file in Word, or WordPad, or whatever RTF reader you have on your system,
your text will appear (in the system-default font and style, 'cause you
inserted it before any document styles) at the top of the document.

Note: this is absolutely NOT valid RTF; it only works because Microsoft
specifically requires that RTF readers obey Posten's Law.  If you later edit
the modified file in Word, WordPad, etc. your datestamp text will be moved
to a more appropriate area of the file and you might have a hard time
finding it again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090213/0ccaabff/attachment.htm>


More information about the Tutor mailing list