RE: Adding to a text file
RE: Adding to a text file
- Subject: RE: Adding to a text file
- From: "Francois Houle" <email@hidden>
- Date: Wed, 16 Mar 2005 14:14:22 -0500
- Thread-topic: Adding to a text file
Thank you for your answer Michelle...
However what you wrote made only some limited sense to me...
Could you give me maybe a scripting dictionnary reference to look into
to do waht your proposing ? Just that I've never dealt with playing with
text with AS before.
Frank
-----Original Message-----
From: Michelle Steiner [mailto:email@hidden]
Sent: Wednesday, March 16, 2005 2:09 PM
To: Francois Houle
Cc: AppleScript User's List
Subject: Re: Adding to a text file
On Mar 16, 2005, at 11:21 AM, Francois Houle wrote:
> I'm just not sure how to do this, but is there a way with AS to add
> text to the beginning of a .txt file ? I want to append two lines of
> text which I as variables to make it easier to type ... Just dobnw
> know how to append this text to the beginning of a file, and on two
> consecutive lines.
I would read the file, then append the content to the new text (in
memory), reset the EOF of the file to zero, and write the data back to
the file.
-- Michelle
--
"Push to test." (click) "Release to detonate."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden