On Fri, 10 Dec 1999, Jan Erik [iso-8859-1] Moström wrote: > Is it possible to build some kind of "application" in MacPerl that implements a > "command window" where I can type commands (that is: scripts that I have made > myself). Something like using ToolServer from BBEdit (which is alternative to do > this ... since I tend to have BBEdit open most of the time). > > In short I'm looking for a way to execute scripts from a command line > environment but I don't know what alternatives I have (in unix I would just have > put them into ~/bin). I would be grateful if someone could give me some advices > or examples of how to this? (opinions like "forget it, use ToolServer" is OK 8-) MPW (Macintosh Programmers Workshop) is probably your best bet for recapturing that UNIX feel. If you've got the perl MPW tool then you can invoke perl scripts with the same comand lines that you're used to on UNIX. Quoting conventions, wildcards etc are a bit different, but not to the extent that any competent (non-ideological) person should have problems. Failing that, there is always the one-liner facility that comes with the MacPerl app. I don't use it much myself. There are a bunch of things you can do otherwise. You really need to read up on what you can do with MacPerl droplets, for example, and about the various simple interfaces that come with MacPerl. For example, you could write a wrapper droplet which you drag any script onto, it pops up a dialog that you type in the arguments in, it splits that up and populates @ARGV, and then uses do() on the filename, running the script with the correct arguments. The sky is the limit, really. Arved Sandstrom # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org