Is it possible to pass a variable from an applescript to an executable bash file? If so, how do I write the executable bash file to accept parameters? I'm going to be passing in a dynamic filename that will get appended to a file path in the executable file.
Applescript...
global A
set A to "test123.pdf"
do shell script "/Users/matt/firstscript " & A
Bash file...
#!/bin/bash
b64test=$( base64 /Users/matt/Documents/$1)
echo $b64test | pbcopy
echo $b64test > Users/matt/Base64