• 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: Shane Stanley <email@hidden>
  • Date: Thu, 5 Feb 2004 18:16:01 +1100

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.

--
Shane Stanley <email@hidden>
_______________________________________________
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: Paul Berkowitz <email@hidden>
References: 
 >Re: carriage return trouble (From: Andrew Oliver <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