Re: Update screen during lengthy process

2011-01-12 Thread tkuyp...@telenet.be
Thanks all... I was getting desperate, but I think Richard's way will work... Will give it a try later this evening :-) But also Scott's solution, using a second app has some possibilities. Will take a look at that one, when the "Richard-trick" doesn't work! Met vriendelijke groeten, Ton Kuyper

Re: Update screen during lengthy process

2011-01-12 Thread Thierry
Le 12 janv. 2011 à 14:52, Richard Gaskin a écrit : > So I needed both a way to indicate progress, and a way to cancel the task, > just as you do. Hi Richard, I had the same problem with one of my external written in C. and that's exactly what I've done. ( different context, but same solution )

Re: Update screen during lengthy process

2011-01-12 Thread Andre Garzia
Richard, I like that! :-D > > My WebMerge product has a similar challenge: for most folks it runs in just > a few seconds, but it's sometimes used to process very large collections of > product lists (300,000 or more) which can take a few minutes. > > So I needed both a way to indicate progress,

Re: Update screen during lengthy process

2011-01-12 Thread Richard Gaskin
tkuypers wrote: > I've created a hot-folder based app, that executes a few scripts when > a file if dropped into a specific folder. > But these scripts can take up to 4 minutes to end and during that > period LiveCode is locked. > > I'm using a send command to watch the folder every few seconds,

Re: Update screen during lengthy process

2011-01-12 Thread Andre Garzia
On Wed, Jan 12, 2011 at 7:22 AM, Scott Rossi wrote: > In addition to the other suggestions, another option is to hand off the > AppleScript launch to a separate LiveCode application.  This way your > hot-folder app remains independent of the launch app that gets locked up by > the AppleScript proc

Re: Update screen during lengthy process

2011-01-12 Thread Scott Rossi
In addition to the other suggestions, another option is to hand off the AppleScript launch to a separate LiveCode application. This way your hot-folder app remains independent of the launch app that gets locked up by the AppleScript process. Depending on what tasks are being completed, you may no

Re: Update screen during lengthy process

2011-01-12 Thread Phil Davis
You might look at either (1) breaking your long process into a series of smaller handlers executed one after the other by "send to me in 6 ticks" at the end of each one; or (2) put some "wait 6 ticks with messages" statements at various places in your long handler. I usually do (1) instead of

Re: Update screen during lengthy process

2011-01-11 Thread Shao Sean
sadly with only one thread, you will need to wait for your external code to complete unless you do some funky coding using the open process command < http://docs.runrev.com/Command/open-process > ___ use-livecode mailing list use-livecode@lists.runr

Update screen during lengthy process

2011-01-11 Thread tkuyp...@telenet.be
Hi gang... I've created a hot-folder based app, that executes a few scripts when a file if dropped into a specific folder. But these scripts can take up to 4 minutes to end and during that period LiveCode is locked. I'm using a send command to watch the folder every few seconds, is a file is