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

2009-02-14 Thread bob gailer
Please don't attach a reply of this nature to comments I made that you have not responded to. If you want our help, please respond to our comments and questions. cclpia...@comcast.net wrote: Hi Bob, I found out from Alan Gauld that the file i was attempting to open was a binary file. And bec

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

2009-02-14 Thread cclpianos
Hi Bob, I found out from Alan Gauld that the file i was attempting to open was a binary file. And because of that the strangeness occurred. I haven't yet learned to work with the binaries as of yet. Thanks! Pat 4. Re: Copy file function works,but not with adding the date copi

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

2009-02-13 Thread bob gailer
cclpia...@comcast.net wrote: Hello, "but can't open with the application TextEdit" What are you doing to open it? What does "can't open" mean"? Error messages or what? Could this be a resource fork issue? AFAIK Python does not reproduce the resource fork. -- Bob Gailer Chapel Hill NC 919-636-

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

2009-02-13 Thread Alan Gauld
"Marc Tompkins" wrote 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. If the OP is just working through my tutor I doubt if he will be able to do much

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

2009-02-13 Thread Marc Tompkins
On Fri, Feb 13, 2009 at 11:35 AM, Marc Tompkins wrote: > On Fri, Feb 13, 2009 at 11:11 AM, Alan Gauld wrote: > >> >>> {\rtf1\mac\ansicpg1\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.

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

2009-02-13 Thread Marc Tompkins
On Fri, Feb 13, 2009 at 11:11 AM, Alan Gauld wrote: > >> {\rtf1\mac\ansicpg1\cocoartf824\cocoasubrtf440 >> > > The problem is that this is an RTF format which is a binary format. > You can process binary data ion Python (see the box on the files > topic page) but it is much more difficult that

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

2009-02-13 Thread Alan Gauld
wrote I am modifying a simple program "copy file" from the tutorials Alan Gauld wrote. In it's first simpler instance (W/O date) it works beautifully. But I wanted to add the date the file was copied. I've kept it simple by pointing to a single file. The problem lies somewhere in how the progr

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

2009-02-13 Thread cclpianos
Hello, I am modifying a simple program "copy file" from the tutorials Alan Gauld wrote. In it's first simpler instance (W/O date) it works beautifully. But I wanted to add the date the file was copied. I've kept it simple by pointing to a single file. The problem lies somewhere in how the