Shell and Background Jobs

Klaus on-rev klaus at major.on-rev.com
Wed Aug 24 10:53:48 EDT 2011


Hi Chris,

Am 24.08.2011 um 16:32 schrieb Nonsanity:

> Thanks, Klaus.
> 
> I had tried wrapping my call in a .sh file (made outside of LC) but I then
> launched it with a shell command and another "&" just to see if it was the
> command itself that was somehow aborting with the backgrounding behavior.
> But despite and & both inside and out, the shell command would still wait
> for the whole process to complete before returning.
> 
> I hadn't tried it with "launch" though. That should give similar results to
> launching an AppleScript, though maybe it won't bring a shell window to the
> foreground? If so, that would be the method to use.

I can only say that this (launch) worked for me.

> I'm a bit curious about the character replacement you're doing for the
> returns. I can see replacing carriage returns (13) with linefeeds (10), but
> replacing them with backspaces (8) seems VERY strange. I can't see how/why
> that would work.

I have not the slightest idea why this is necessary, but read it somewhere on
macfixit.com and that was official enough for me since it worked :-)

> But I'll give that a try. If it doesn't knock LiveCode from the frontmost
> application spot, that's better than using AppleScript, and being able to
> generate it inside LC is a plus too. I'll go test that later. :)
> 
> ~ Chris Innanen
> ~ Nonsanity

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the Use-livecode mailing list