AS driving Perl (or vice-versa)
AS driving Perl (or vice-versa)
- Subject: AS driving Perl (or vice-versa)
- From: Jim Witte <email@hidden>
- Date: Sat, 16 Jul 2005 22:18:40 -0500
Hi,
Since there's the thread "AS driving Perl", I though I'd ask a
question I've had for a couple of days - is there an environment for
doing Perl/AS (or Perl/OSA) scripting *easily*? I know I can run
Perl through terminal, but I'm thinking of an environment where I
could write something like
my %buttonSet= {"OK", "Cancel"}
display dialog "Enter file name:" default answer "a file" buttons %
buttonSet
my $fname = text returned of the result
// or perhaps the syntax my $fname = result.(text returned)
FD = open($fname, r+)
$i = 1
for <FD> {
%tNames[i] = split(_$, text delimiters)[1]
set i = i + 1;
}
set tText to ""
for (j=0, j<i, j++)
tText = tText. (full path of file %tNames[j]) . '\n'
display dialog tText
You get the idea.. Full syntactic integration between AS and
Perl, transparent translation between AS and Perl arrays and statics,
integration of AS subexpressions into larger Perl expressions..
Does anything like this even remotely exist? Or even just a way
to run OSA commands from within Perl?
Jim Witte
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden