Re: can't make document
Re: can't make document
- Subject: Re: can't make document
- From: Steven Majewski <email@hidden>
- Date: Mon, 23 Feb 2004 16:59:40 -0500
On Feb 23, 2004, at 3:31 PM, Wesley Smith wrote:
Hi,
I'm sure that there is someting basic that I'm not getting right, but
I can't
seem to get the read function or the open for access of the standard
additions
dictionary to work for me. Previously, I've set a variable as a file
reference, and I've verified that everything is in order, but when I
do say
"open for access (file reference)", I get the message "can't make
document
file FILENAME of folder FOLDER of disk DISK".
I don't know what this message means since the file exists already and
I'm not
trying to make it. Is the script trying to make a file? All I want
to do is
open a text file and scan a few lines, and return a few values.
any suggestions?
If "file reference" is a placholder for your variable, you might try
something like:
'open for access file theFileName
i.e. stick the literal 'file' in front of the variable.
( This is a well known misfeature of Applescript which probably eats up
a dozen
man hours per newbie scripter. Why they don't just fix it, I don't
know! )
-- Steve Majewski
_______________________________________________
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.