Re: [OT] AppleScript scripts versus Shell scripts
Re: [OT] AppleScript scripts versus Shell scripts
- Subject: Re: [OT] AppleScript scripts versus Shell scripts
- From: "John C. Welch" <email@hidden>
- Date: Sun, 26 Jan 2003 01:36:03 -0500
On 01/26/2003 00:28, "Michael Kelly" <email@hidden> wrote:
>
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)?
Well, I *am* using the real grep, but I need to take the results of that and
decide if I found a virus or not, if so, display that to the user, and hit
some other notifiers.
>
>
>> 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.)
Um...and if you're not doing web scripting at all?
>
>
>> 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.
You're really assuming some stuff...like that scripting is a web - only
thing.
>
>
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.
Only if you have a need. If you aren't doing web scripting PHP, and a good
chunk of Perl isn't a big deal at all.
john
--
"Lo Que Sea, Cuando Sea, Donde Sea"
(Anything, Anytime, Anywhere)
7th Special Forces Group (Airborne)
_______________________________________________
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.