Strange error reading file...
Strange error reading file...
- Subject: Strange error reading file...
- From: David Crowe <email@hidden>
- Date: Sat, 3 Apr 2004 11:47:39 -0700
I am having strange errors reading small text files with Applescript.
The code in question is:
set ImportFileRef to open for access AFile
-- Read all lines from file
set i to 0
try
set Filecontents to read ImportFileRef
on error errmsg number errnum
error errmsg number errnum
end try
I get an error on the "error" statement!
The word "errmsg" (second occurrence) is highlighted by the Script
Editor and a dialog box pops up:
"AppleScript Error
End of file error"
(before I put in the "try" statement I got this same error).
I have downloaded this text file via Safari. In every case when I've
downloaded the same text file I do NOT get the error on the second
file.
What's more, there appear to be no differences between the file
contents (compared using Word and FrameMaker) nor in the permissions
or other settings (using Get Info and FileBuddy).
Any suggestions?
- David Crowe
_______________________________________________
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.