Re: open file for overwriting
Re: open file for overwriting
- Subject: Re: open file for overwriting
- From: Michelle Steiner <email@hidden>
- Date: Tue, 14 Oct 2003 23:03:15 -0700
On Tuesday, October 14, 2003, at 10:15 PM, Rua Haszard Morris wrote:
I'm trying to use open for access to open a file for writing to. If
the
file exists, I want it to be overwritten.
set boo to "Dora:Users:michelle:Desktop:a"
set foo to open for access file boo with write permission
set eof of foo to 0
write "abcd" to foo
close access foo
--
Don't dream it. Be it. --RHPS
_______________________________________________
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.