• 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
Re: Setting AS Var to Perl Result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting AS Var to Perl Result


  • Subject: Re: Setting AS Var to Perl Result
  • From: Skeeve <email@hidden>
  • Date: Mon, 29 Nov 2010 21:47:02 +0100

Am 29.11.10 17:23, schrieb Marconi:
/path/to/the/contained/perl/script /path/to/the/dropped/data/file.txt name_of_datum_to_extract
set the_result to do shell script "perl -e " & quoted form of("
    my datumname=pop @ARGV;
    $datumname= qr/^\\s*$datumname\\s*:\\s*(.*?)\\s*$/;
    while (<>) {
        print qq:$1\\n: if /$datumname/;
    }
") & " " & quoted form of (filename) & " " & quoted form of (datumname)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Setting AS Var to Perl Result (From: Marconi <email@hidden>)

  • Prev by Date: Re: Setting AS Var to Perl Result
  • Next by Date: Re: How to adjust this script to work on Snow Leopard?
  • Previous by thread: Setting AS Var to Perl Result
  • Next by thread: Re: Setting AS Var to Perl Result
  • Index(es):
    • Date
    • Thread