[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] FM <-> AS <-> MP



At 23.18 +0100 1999.12.14, Detlef Lindenthal wrote:
>  tell application "MacPerl"
>    activate
>    do script SKRIPT
>  end tell
>
>This works fine -- but all the output goes to the MacPerl window. How can I
>display all results in my Filemaker cell named "RESULT"?

See MacPerl.Frontend:

>"mode" [MODE] (opt): A mode [MODE], one of Local [LOCL], Batch [BATC],
>						Remote [RCTL], or Duplex
>[DPLX].

> - Batch mode redirects standard output and error to the reply apple
>event. Standard output is put into the direct parameter of the reply, while
>standard error is put into element [diag] of parameter [OUTP].

So:

  do script SKRIPT mode Batch

should work.  This should have been covered in the book, but wasn't.  Oh
well.  :-)

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org