I am currently learning how to use bash shell scripting with AppleScript. I have a problem. The problem is how to pass a bash variable into an osascript The example is as following:
read input
foo $input
foo(){
osascript path/to/script.scpt $1
}
my question is how to convert input into something that would be accepted by the script.scpt since $1 would not be recognized by the script.scpt . Thanks