Re: [OT] AppleScript scripts versus Shell scripts
Re: [OT] AppleScript scripts versus Shell scripts
- Subject: Re: [OT] AppleScript scripts versus Shell scripts
- From: Michael Kelly <email@hidden>
- Date: Sun, 26 Jan 2003 03:09:41 -0800
- Mail-followup-to: AppleScript List <email@hidden>
On Sun, Jan 26, 2003 at 01:36:03AM -0500, John C. Welch wrote:
[snip]
>
>>> 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.
>
Um...and if you're not doing web scripting at all?
Grr, I obviously cut out some important "example: web scripting" line in
there. I was trying (quite unsuccessfully) to point out that there are
certainly tools that transcend platforms. For example, for web
scripting, Perl and PHP are almost everywhere, and for text processing
there is very often Perl (and awk, if you're lucky).
I'm mostly just picking on your wording.
>
>>> 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.
I used web scripting as an example, nothing more. There are other
examples in other areas.
>
> 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.
True. But to have a knowledge of only AppleScript (or one shell) is
needlessly limiting. There are plenty of examples in C and Perl (not
web-related) that can be of use in AS.
Ech, sleep...
--
Michael
Totally tangential and mostly rhetorical question: If AppleScript is
based on English, is decss illegal if it's in AppleScript? ;)
_______________________________________________
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.