Open process

Scott Raney raney at metacard.com
Mon Mar 24 17:24:01 EST 2003


On Sat, 22 Mar 2003 <swedentom at telia.com> wrote:

> Hey,
> This is my script:
> 
> on mouseup
>    open process "/bin/date"
> end mouseup
> 
> Why do I get error -50 as the result?

Because you can't start up UNIX processes with "launch" or "open
process" on Mac OS X, you can only use them with shell().  Which as it
turns out is the only thing that would make any sense with simple
programs like "/bin/date" anyway because that program doesn't support
stdio.

We may eventually need to add an option to "open process" on OS X to
allow this, but for now it's one of those messy areas that's still
stuck in the "MacOS compatibility" box.
  Regards,
    Scott

> Tomas Franzén
> Lighthead Software
> http://www.lightheadsw.com/

********************************************************
Scott Raney  raney at metacard.com  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...





More information about the use-livecode mailing list