File wasn't found - Error Message. Open for Access in 9.2.2
File wasn't found - Error Message. Open for Access in 9.2.2
- Subject: File wasn't found - Error Message. Open for Access in 9.2.2
- From: RC <email@hidden>
- Date: Sat, 23 Mar 2002 08:00:54 -0800
I have written some scripts to open and read browser data files for a
filemaker pro database. The script below works fine (although, I am sure it
could be improved) when running 9.1 or 9.2.1 but fails under 9.2.2 with
following error message:
"Finder got an error: File Test File wasn't found."
Here is the script:
tell application "Finder"
set myQueryFile to alias (((path to
startup disk) as text) & ":" & "Test Folder:Test File")
set myFileRef to (open for access myQueryFile)
set tsize to (get eof myFileRef)
set myQueryResult to read myFileRef as string from 1 to tsize
close access myFileRef
end tell
I have read the archives and posted information and tried different methods
but with no success. I understand the relative file paths are not quite
right for applescript 1.7, but, I would like to get something working, if
possible. The above script works in the script editor under 9.2.1 with no
error.
Some posts have recommended avoiding "open for access", if possible. Is
there a way to do so here?
Thank you for your help!
RC
_______________________________________________
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.