in reply to RFC: Porting map() and grep() to AppleScript

Thoughts?

.... well eventually you must confront the issue that this is a Perl website....not AppleScript


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re: RFC: Porting map() and grep() to AppleScript

Replies are listed 'Best First'.
Re^2: RFC: Porting map() and grep() to AppleScript
by mjg (Scribe) on Nov 23, 2009 at 18:00 UTC

    It is? I thought this was Facebook... ;-)

    Seriously, that's why I posted on Meditations as an RFC. I wasn't sure if it would be welcome as a real node. Maybe consider it a form of Perl advocacy in the AppleScript world, speaking the native language in order to reach more potential converts.

      ... i thought it was twiiter :-)

      ...seriously.... the conventional way to introduce non-perl scripts here, is to wrap them in an here doc, like:

      #/usr/bin/perl my $scriptSrc = <<"EOF"; <SCRIPT LANGUAGE="APPLESCRIPT"> # all your applescript here EOF print $scriptSrc,"\n";
      ... then everybody is happy

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku

        Indeed, you need to wrap it that way otherwise the site gets syntax coloring and reindenting wrong. You also need to add use warnings; use strict; though, or it will get rejected on the base that you'd find the trivial errors if you enabled those.