At 16:59 -0500 1/23/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?

<http://developer.apple.com/technotes/tn2002/tn2065.html>

Will be helpful. HFS+ starts with a disk name and uses colons for file separators. 
There is no "root" except perhaps for the name of the startup disk.

Also AppleScript will not honor your .login or .profile definition of $PATH and it 
defaults to the bash shell regardless of your choice as a user. One pretty much needs 
full paths for everything but "POSIX path of" HFS+ file path helps a lot. See also 
"quoted form of" to get the escapes escaped.

If you really get involved learn about $HOME/.MacOSX/environment.plist where you can 
set up a default $PATH.

Forget about using MacPerl with AppleScript on OS neXt.

I find it easier to prepare perl scripts in an editor, make them executable with a #! 
line and an x permission bit. Use AppleScript only to create a Finder-executable 
application with a do shell script that just points to your executable.

-- 
-->  There are 10 kinds of people:  those who understand binary, and those who don't 
<--

Reply via email to