Re: writing data to a file
Re: writing data to a file
- Subject: Re: writing data to a file
- From: Timothy Bates <email@hidden>
- Date: Wed, 01 May 2002 09:54:32 +1000
On 1/5/02 2:02 AM, "Kinsella, John R." <email@hidden> wrote:
>
I can't seem to figure out how to access and write to a file more than once.
>
I can create a new txt file and add data to it once, but after that, I'm
>
informed that there is a duplicate file and the script errors out.
Always good too include the 2 or 3 lines you think are the problem.
Sounds like you are creating the file every time you want to write to it
(that is what the duplicate error means).
So, create the file once, then just loop through an open, write, close
sequence repeatedly, or, if it is a pretty tight loop, open , write write
... Close.
tim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.