On 1 February 2010 06:11, Charles Hartley <[email protected]> wrote:
>
> The line writeTo(finalText, file5Path, false, string) was marked as
> the problem line.

Charlie your writeTo call is now inside the tell block, so you're
directing it to System Events, which doesn't understand what writeTo
means. You'll need to use "my writeTo(...)" instead which directs the
call to the running script that contains the writeTo() handler.

BTW, in your OP the problem is caused by the well-known conflict
between FileMaker and Standard Additions both having write/read
commands. If you like, you can use the raw codes «event rdwrwrit» and
«event rdwrread» in place of your script's write and read statements
respectively and then you won't need the "tell" block. Can make
editing and testing your script trickier though.


--
Tim Mansour <[email protected]>

"Give us a religion that will help us to live -- we can die without
assistance." -- Elbert Hubbard

Reply via email to