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: "J.B. Stewart" <email@hidden>
- Date: Thu, 31 Jan 2002 05:18:39 -0500
On 1/31/02 at 7:36 AM, Andrew Nielsen <email@hidden> wrote:
>
At 09:21 +1100 31/01/2002, Shane Stanley wrote:
>
>On 31/1/02 8:58 AM +1000, J.B. Stewart, email@hidden, wrote:
>
>
>
>> Well I'm no unix expert but sometimes I just can't resist a challenge or
>
>> hint.
>
>
>
>Thank you. Jon: I want copyFile back ;-)
>
>
This works for me out of the box without any osaxen.
>
>
do shell script "/Developer/Tools/CpMac myfile"
>
>
I don't _care_ if I'm calling a Unix shell script. To a very large
>
degree, I don't care what "language" or "environment" I'm calling
>
from my AppleScript, if it gets the job done. The joys of osa.
Andrew,
That will work "right out of the box" only if you have installed the Developer
Tools. That's not going be the case with everyone using OS X. It brings us right
back to the problem of ensuring that the something (osax for instance) is
installed before we can use it.
John
P.S. You're welcome Shane but that is not much of a replacement for copyfile.
With a bit of work it may sometimes serve in place of it though.