Waiting for 'shell'
Mike Bonner
bonnmike at gmail.com
Tue Nov 1 19:00:37 EDT 2011
Didn't have a chance to answer this morning, but you might look at 'open
process' instead of shell for this.
That way, you can open the process for read, start a read loop (with either
a send in time, or a wait with messages) and use the async nature of this
method to update a status bar or whatever.
Unfortunately, I haven't messed with open process enough to whip out a
quick bunch of code for this. (I suspect theres yet another learning curve
in waiting if you go this direction)
Another option might be to use launch if you don't need any data back. The
problem with this method would be knowing when the action was done. It
might be possible to use a batch file (if on windows) that will do
everything for you when launched, then set an environment variable or some
type of check file that can be polled intermittently. If you go this way
and don't want the console window to show you can set the
hideconsolewindows to true.
On Tue, Nov 1, 2011 at 3:26 PM, Warren Samples <warren at warrensweb.us> wrote:
> On 11/01/2011 03:47 PM, Roger Eller wrote:
>
>> I've done this on Mac and Windows, but I would expect it to work on Linux
>> too.
>>
>> ~Roger
>>
>
>
> Putting something like "show animated.gif > get shell("cp fileLocA
> fileLocB") in a button leaves the animated gif completely static during the
> copy operation. Interestingly, the gif is static the whole time - until the
> copy is finished - even if there is a wait before the get shell(). Perhaps
> you are doing something a little more involved/complicated to display the
> gif?
>
> Warren
>
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
More information about the use-livecode
mailing list