Re: Scripting Additions: Embracing the Horror of Unix
Re: Scripting Additions: Embracing the Horror of Unix
- Subject: Re: Scripting Additions: Embracing the Horror of Unix
- From: Timothy Bates <email@hidden>
- Date: Tue, 29 Jan 2002 18:01:17 +1100
On 29/1/02 5:36 PM, "Jon Pugh" <email@hidden> wrote:
>
However, I've had a bit of an epiphany I thought I would share.
>
These unix shells will probably make most scripting additions unnecessary.
>
For example, the copyFile command is thus:
>
>
set sourceFile to "Disk:folder:folder:file"
>
set destinationDir to "Disk:folder:folder:folder:"
>
do shell script ("cp " & posix path of sourceFile & space & posix path of
>
destinationDir)
>
And so, I am considering the death of Jon's Commands. Or more likely, it's
>
rebirth as something completely different and yet disturbingly similar.
The big difference is
A. the osax does pretty printing with english syntax parameters
B. the osax has a dictionary which script debugger can view.
C. unix is not available on OS 9 :-)
Starting with B, I cannot remember almost any script commands: but I know
that if just hit cmd-shift-A in script debugger, I can quickly navigate to,
say, display dialog and see how to name a button or whatever.
So ... Osaxen are dead if we can call them from scripts using a pretty
printing syntax like " list files in <dir> with showing all" (instead of
shell script "ls -a " & dir as string")
AND I can get a pretty-printed guide to these commands, and it runs under
OS 9 (this is unsuperable, I guess).
>
So Jon's Commands isn't dead yet, but it's not imminent either.
It is just as needed as ever, IMHO.
tim