• 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: Long text file manipulation...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Long text file manipulation...


  • Subject: Re: Long text file manipulation...
  • From: Emmanuel <email@hidden>
  • Date: Wed, 4 Apr 2001 21:22:23 +0200

At 14:54 +0200 4/04/01, bRaD Weston wrote:

>Essentially, I just want to read the first line of the file and delete it
>from the file and add another line to the bottom of the file.

There are certainly many solutions, but I would advise to use Smile (a
script editor that my company makes freely available, and also a scriptable
text editor). This is because, 1. your solution would be very fast to
write, and 2. it will be safe. Smile has been tested against opening and
closing successively many big files.

---------------- tested under Smile 1.7.5
set theWindow to open alias thePathName
set first paragraph of theWindow to ""
set end of text of theWindow to return & theNewLineContents
close theWindow saving yes
----------------

HTH
Emmanuel


References: 
 >tab delimeted log file (From: Brian <email@hidden>)
 >Long text file manipulation... (From: bRaD Weston <email@hidden>)

  • Prev by Date: Re: moving HD volumes on desktop
  • Next by Date: Re: Error -11781
  • Previous by thread: Re: Long text file manipulation...
  • Next by thread: Re: tab delimeted log file
  • Index(es):
    • Date
    • Thread