• 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: [OT] AppleScript scripts versus Shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] AppleScript scripts versus Shell scripts


  • Subject: Re: [OT] AppleScript scripts versus Shell scripts
  • From: Michael Kelly <email@hidden>
  • Date: Sat, 25 Jan 2003 21:28:10 -0800
  • Mail-followup-to: AppleScript List <email@hidden>

On Fri, Jan 24, 2003 at 10:16:39PM -0500, John C. Welch wrote:
> On 01/24/2003 07:54, "Chris Janton" <email@hidden> wrote:
> > You're not going to script Mail.app with PERL, just like you're not
> > going to implement "zgrep" in AppleScript (well, I guess you could with
> > AppleScript and do shell script, but why?!)
> Because you only need a one time quick grep? I do this in a folder action.

Why not just use the real grep(1)?

> > If you are going to script a Unix system you *can* focus on a single
> > shell (a POSIX shell is a good choice e.g. bash) but should be prepared
> > to dive into languages like PERL, python, quite possibly PHP.
> Why? This *totally* depends on toolset and platform.

No, not totally. Perl, PHP and Python are all very heavily used on the
web. I would be willing to bet there is not a serious modern platform
available that can run a webserver but not Perl. Therefore, Perl is
probably the most portable solution for any kind of web development,
with PHP and Python close behind.

(...in my personal opinion. I'm aware PHP is gaining ground.)

> > An person who scripts can't afford to be a mono-linguist.
> Actually, you can't afford to be completely ignorant, but no, you don't have
> to be able to write scripts in three-four languages.

Some knowledge of Perl or PHP is pretty much required for any kind of
CGI. C, being very widely used and known, is typically used for examples
of algorithms and such.

It is not necessary to actively _write_ in several languages, but a
working knowledge of several (enough to understand code and translate it
into the language of your choice) is certainly required. You narrow the
scope of potential sources of knowledge tremendously by writing in only
one language.

Just my personal opinions,
--
Michael
email@hidden
http://www.jedimike.net/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [OT] AppleScript scripts versus Shell scripts
      • From: "John C. Welch" <email@hidden>
    • Re: [OT] AppleScript scripts versus Shell scripts
      • From: Shane Stanley <email@hidden>
References: 
 >Re: [OT] AppleScript scripts versus Shell scripts (From: Chris Janton <email@hidden>)
 >Re: [OT] AppleScript scripts versus Shell scripts (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: Creating a list of alias from folder contents
  • Next by Date: Re: Stuffing characters
  • Previous by thread: Re: [OT] AppleScript scripts versus Shell scripts
  • Next by thread: Re: [OT] AppleScript scripts versus Shell scripts
  • Index(es):
    • Date
    • Thread