in reply to Re: Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?
in thread Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?

I think you can use a compiled applescript. And a compiled applescript can include
do shell script "/some/unix/command with args | here to | there >outpu +t";
so it might be inconvenient, but at least you can fire your arbitrary script this way.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re^2: Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?
  • Download Code

Replies are listed 'Best First'.
Re^3: Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder?
by halley (Prior) on Feb 14, 2005 at 20:08 UTC
    I'll have to give that a try, merlyn, but if we're missing a mechanism akin to the shell $0 argument, it'll be hard to make a single generic AppleScript that chains over to a number of Perl behaviors.

    --
    [ e d @ h a l l e y . c c ]