Re: carriage return trouble
Re: carriage return trouble
- Subject: Re: carriage return trouble
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 04 Feb 2004 23:49:19 -0800
On 2/4/04 11:16 PM, "Shane Stanley" <email@hidden> wrote:
>
On Feb 5, 2004, at 5:13 PM, Andrew Oliver wrote:
>
>
> When you 'write' to a file starting at the EOF, you overwrite the last
>
> character in the file (in this case, the last return from the previous
>
> write) with the string that you're writing.
>
>
>
> You need to start writing at the EOF + 1:
>
>
>
> write ("-------" & "alma" & "-------" & return) to openfile starting at
>
> (theeof + 1)
>
>
You can do it that way, but it involves getting the eof separately.
>
Using "write x to openFile starting at eof" does the same thing.
And the other way has to be
write ("-------" & "alma" & "-------" & return) to openFile starting at
((get eof openFile) + 1)
if done in one line, doesn't it? Much more contorted. 'starting at eof' is
neater.
--
Paul Berkowitz
_______________________________________________
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.