"Read" files in OSX?

this is what I have…

tell application "Finder"
	copy (read "Macintosh HD:testfile") to var
end tell

it works fine in OS9 but when I open it up in OSX i get this error in the log:

anyone have any ideas?

:lol: LOL

1 min after posting this i foudn out what i needed to do…

if the mutorators want to delete this thats fine, but if anyone else had this trouble:

tell application "Finder"
	copy (read the file "Macintosh HD:testfile") to var
end tell

add “the file”

lol only in applescript :rolleyes:

Actually, you don’t need the Finder for this. This should work.

copy (read the file "Macintosh HD:testfile") to var