David,
Try this. Create a button in your stack and put the following in it:
on mouseUp
answer file "choose a text file to read"
if it is empty then exit mouseUp
--> SHOWS THE CONTENTS OF THE TEXT
answer URL("file:" & it)
end mouseUp
If there's nothing in the answer dialog box, then you'
David-
Saturday, July 10, 2004, 1:09:36 PM, you wrote:
DS> open file tfilename
What you want here is
open file tfilename for read
The default mode is update, which will fail because it can't be opened
in that mode from a locked device.
--
-Mark Wieder
[EMAIL PROTECTED]
I wasn't going to do it right away (I was working in the yard), but did and
inserting 'for text read' made the difference. Thanks a lot.
Dave
>Again, thanks for the replies, Dan and Andrew.
>I get no results. That is nothing from the text file. I got a long
>series of
>YesYesYes ...in the field
Again, thanks for the replies, Dan and Andrew.
I get no results. That is nothing from the text file. I got a long series of
YesYesYes ...in the field. I'll try Andrew's suggeston:
open file tfilename for text read
Dave
>OK, do you get an error message when you try to read from the CD or do
>
OK, do you get an error message when you try to read from the CD or do
you get erroneous read results or no results at all or what?
Dan
On Jul 10, 2004, at 1:09 PM, David Squance wrote:
Dan,
Thanks for the reply. I'm only attempting to read from a file, not
write
to it, but is there a reason th
Dan,
Thanks for the reply. I'm only attempting to read from a file, not write
to it, but is there a reason that doesn't work when the file is on a CD?
This is part of the script I'm using:
set the itemDelimiter to "/"
repeat
answer file "Choose the team name:"
if the result is "cancel
I have a stack which needs to read text files and place the content in a
field. This had been working fine in the IDE with the text files and the
stack in the same folder on my hard drive (Mac OS 10.3.4), but not as a
standalone. I switched to the answer file approach, and got it to work
with the