Re: applescript-users digest, Vol 2 #1455 - 5 msgs
Re: applescript-users digest, Vol 2 #1455 - 5 msgs
- Subject: Re: applescript-users digest, Vol 2 #1455 - 5 msgs
- From: Bill White <email@hidden>
- Date: Sat, 05 Jan 2002 22:32:09 -0500
>
First off, open your text file using "open for access":
>
>
set ref to open for access ("HD:blah:blah:theFile" as alias)
>
set myText to read ref as text
>
close access ref
You don't have to open for access to read a file, only to write to one. The
three lines could be condensed into:
set myText to read ("HD:blah:blah:theFile" as alias)
Also I don't think "ref" can be used as a variable as it is a reserved word,
an abbreviation for "reference."
Bill