This would be a perfect application of my idea of creating a standalone that
does one task. Build a standalone that does what you want, and set it's window
to System so it floats above everything else (or not if you want the user to be
able to switch back and forth). Use Applescript to communica
Very cool! I kept staring at the code you sent but i'm just too fuzzy today
to make much sense of things. Glad its working for you!
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
Solved... it is where the end if's were placed!
local nM
on mouseUp
startProcess
end mouseUp
command startProcess
put fld dbPathList into nM
open process nM for update
set the cRunning of this card to true
readloop
end startProcess
command readloop
if the the cRunning of this c
Well I appreciate the input.
This area needs more examples since the potential is huge (IMHO).
Worst case I lock the user down until the process completes but give a nice
"Be patient" message.
regards,
Glen
On Wed, Mar 28, 2012 at 7:14 PM, Mike Bonner wrote:
> Maybe its time to go with the B
Maybe its time to go with the Bob method?
On Wed, Mar 28, 2012 at 7:13 PM, Mike Bonner wrote:
> Interesting. Not sure whats up then because "read until empty" should grab
> whatever happens to be in the buffer at the time. Whether its read for 10,
> or whatever all the same data passes through
Interesting. Not sure whats up then because "read until empty" should grab
whatever happens to be in the buffer at the time. Whether its read for 10,
or whatever all the same data passes through the buffer. Meaning the data
is the data and the method used to read shouldn't make a difference as far
Hi Mike,
Well using your code I get the expected result at the end of the process
but the interim output that I try to capture shows nothing?
So good news - using your method I get the end result and the user is free
to do other things ; / bad news - I can't show the interim output for
feedback.
Sorry for posting and falling off the earth. A bit sick today but will try
and give the gist of a send in time loop. This is just off the top of my
head and as always there are probably better ways to do this (also as I
mentioned before, not sure which forms of read will block and which won't
so yo
My first test has come back fairly well.
I missed some of the initial lines of output but got all the remaining
lines.
I broke out of the loop no problem with the unique output line... when it
was seen in the output I exited the repeat.
So the first issue I would like to solve is either have the
One method I have heard of is to redirect output to a text file, then open the
file for read and read from the file every so often in a repeat loop. You still
need to know when the process has ended so you can break out of the loop.
Bob
On Mar 28, 2012, at 2:39 PM, Glen Bojsza wrote:
> The d
Right now I am trying combinations of a number of lines in x amount of
time...
My first test is actually running right now and I can compare the output to
what is done in a terminal window.
The send in time could be promising do you have a small sample?
thanks,
Glen
On Wed, Mar 28, 2012 at 3:4
Could do a send in time to do the read loop, and I believe the form of read
you use will determine how blocking it is. if you read till end, eof,
number of bytes etc I believe it will block until the criteria is met.
Haven't done this much though so not positive. When I do, I tend to use the
"unti
12 matches
Mail list logo