bBox_Ruby( mode; text; param1 {; param2; …; param5} )

Execute a script using Ruby interpreter.

parameters
 mode:
   0 = convert both input and output line endings
   1 = skip conversion of carriage returns (the FileMaker end-of-line marker) to new lines
   2 = skip translation of new lines in shell output to carriage returns
   3 = don't translate input or output line endings
   4 = run asynchronously (don't wait for output) (requires version 0.96+)
   16 = use alternate path at /usr/local/bin (requires version 0.96+)
 text = input text to be processed (sent to stdin)
 param1: Ruby option (optional)
 …
 param5: Ruby option (optional)

result
  output (stdout) from Ruby script

error
   bBox_LastError (-1)

––––––––––

bBox Functions

bBox Wiki