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 not be able to show specific progress, but at least your hot-folder app
can show that it is operation (using an animation or similar), you can keep
your hot-folder app responsive, and you can kill the AppleScript app if
necessary.

This may sound a bit extreme, but I've done it before with installers that
needed to interact with other processes that would normally lock up
LiveCode.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




Recently, tkuyp...@telenet.be wrote:

> 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
> found then it is processed, but I want to show some kind of progress on screen
> to show the app is working.
> 
> I've tried firing off a second event, to show a counter, but that doesn't do
> anything.
> And of course clicking on the "Stop Processing" button doesn't work as well
> :-(
> 
> Any suggestions on how to show a progress, and how to make the "Stop" button
> to work during the execution of an applescript?
> 
> Any suggestions are welcome.
> 
> 
> Met vriendelijke groeten,
> 
> Ton Kuypers



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to