On Mon, 20 Jan 2020 at 17:01, 'Iain Houston' via BBEdit Talk
<
bbe...@googlegroups.com> wrote:
> I feel sure that this is a fairly common roundtrip pattern: BBEdit -> AppleScript -> Shell script -> AppleScript -> BBEdit.
Here's an example. You can also send arguments to an existing shell
script rather than have the script inline:
try
set _q to display dialog "What is your name" default answer ""
set _a to text returned of _q
end try
set _perloutput to do shell script "
perl <<'END'
my $name = qq~" & _a & "~;
print qq~Your name is $name~;
END"
display dialog _perloutput
--JD