Re: open file for overwriting
Re: open file for overwriting
- Subject: Re: open file for overwriting
- From: Patrick Mast <email@hidden>
- Date: Wed, 15 Oct 2003 17:09:50 +0200
hei RUA:
i am using a shell command for writing and reading files.
writing a file (overwriting if exists, creating if not exists):
do shell script "echo -n " & quoted form of theText & " > " & quoted
form of (POSIX path of theFile)
reading from a file:
return do shell script "cat " & quoted form of (POSIX path of theFile)
patrick
Hi all,
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.
I can't find an option for this, and an error occurs if I try to use open
for access on a file that exists.
How do I do this? Normally it's an option in the file open func..?
Cheers,
Rua.
Rua Haszard Morris
Software Engineer & Research Assistant
MARCS Auditory Laboratories
http://www.uws.edu.au/marcs
Ph +61 2 97726723 Fax +61 2 97726326
_______________________________________________
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.
_______________________________________________
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.