• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: carriage return trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: carriage return trouble
      • From: Shane Stanley <email@hidden>
References: 
 >Re: carriage return trouble (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: carriage return trouble
  • Next by Date: Re: carriage return trouble
  • Previous by thread: Re: carriage return trouble
  • Next by thread: Re: carriage return trouble
  • Index(es):
    • Date
    • Thread