As the subject line says, I would like to ask you if it is impossible to call "do shell script" from MacPerl, using MacPerl::DoAppleScript($script).

I tried:

$script = <<EOS;
do shell script "cd ~/; ls"

AppleScript is not a Unix shell, so the change-current-directory and list-directory commands are different.


Also, if you are working with Kanji-Talk or other pre-Mac OS X Macintosh OSses, there is no such thing as a user, much less a user's default or home directory, defined in the system.

(That's a couple of the reasons the pre-Mac OS X Macintosh OSses were nearly impossible to break into from the network unless the user deliberately turned on file and/or program sharing.)

EOS

print MacPerl::DoAppleScript($script) || die "Could not compile script\n";

but I got "Could not compile script"...



Reply via email to