Turns out 'ontrol-j: menu-complete' makes sending text to bash via iTerm2 from osascript problematic