• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AS driving Perl (or vice-versa)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: AS driving Perl (or vice-versa)
      • From: Adam Wuellner <email@hidden>
    • Re: AS driving Perl (or vice-versa)
      • From: "Gary (Lists)" <email@hidden>
    • Re: AS driving Perl (or vice-versa)
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: what happened to Mail's scripts menu?
  • Next by Date: Re: AS driving Perl (or vice-versa)
  • Previous by thread: Mail and Safari's Cmd + and Cmd -
  • Next by thread: Re: AS driving Perl (or vice-versa)
  • Index(es):
    • Date
    • Thread