Wrapping that line in a tell application "finder" ... end tell satisfies FMP, but unfortunately the script no longer does what it was designed to do. I'm probably doing it wrong.
On Sat, Mar 6, 2010 at 6:15 PM, André <[email protected]> wrote: > On Mar 6, 2010, at 16:53, Charles Hartley wrote: > > > The problem is that FMP gives an error message for the line > > *set* the_text *to* (*read* the_file) > > and says Expected "," but found Indentifer. and highlights the_file. > > Removing the parentheses results in an error message that says ... > > Expected end of line, etc. but found identifer. > > How can I modify this script line to get FMP to accept it? > > > I ran into this a couple of weeks ago. FMP doesn't know how to read files. > Enclose the line in a tell application "Finder" block. > > Andre >
