AnsweredAssumed Answered

Pass FileMaker Data to BASH Script

Question asked by JFWX5 on Apr 24, 2015
Latest reply on Apr 26, 2015 by steve_ssh

Hi,

 

Using this Bash script for setting scanning profiles:

 

 

#!/bin/bash

 

 

if [ $number = "1" ]; then

     cd /s3/

       fscanx --tiff —gray  file1

 

fi

 

if [ $number = "2" ]; then

      cd /s3/

       fscanx —pdf file2

 

    fi

 

if [ $number = "3" ]; then

     cd /s3/

       fscanx --tiff  file3

 

else

      

       cd /s3/

        fscanx --pdf —duplex file4

fi

 

killall Terminal

 

 

What do I have to include in a FileMaker's AppleScript  “do shell script” command  in order to pass Document::number  to the bash script?

 

and

 

and what command do I need to receive that variable in the Bash script?

 

 

Thank you

Outcomes