At 4:59 pm -0500 23/1/04, [EMAIL PROTECTED] wrote:


> do shell script "perl /tmp/junk.pl"
-- => "Hello"

I'm afraid I don't have a handle on the Mac OS Extended file system. When you
make the "do shell" call in Script Editor, as you demonstrated, where is the
origin of the filepath? I'm not successful with SE locating my perl file,
which located on my "Macintosh HD". Will that be the same filepath if called from Terminal?


do shell script "ls -al" will list the items at the level of the startup disk.

By contrast a new Terminal window will open with your user directory as the current working directory.


This AS script will change directory to your user dir, change to desktop, create a perl script there and run it:



do shell script "cd ; cd desktop ; echo 'print qq~Hello ! $/~' > junk.pl ; perl junk.pl"

Reply via email to