AW: how can I wait for revCopyFolder execution?

Tiemo Hollmann TB toolbook at kestner.de
Thu Aug 11 08:00:46 EDT 2011


Hi Mark,
thanks for your quick answer, I will give it a try.

Because you have another approach I assume that it is a standard behavior
with rev commands, that they don't wait?
Up to know I presumed that every command is waiting up to it's end of
execution. Are there more commands, which are not waiting?

Thanks
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Donnerstag, 11. August 2011 13:11
> An: How to use LiveCode
> Betreff: Re: how can I wait for revCopyFolder execution?
> 
> Tiemo,
> 
> Here's a sample AppleScript.
> 
> try
> 	tell application "Finder"
> 		set myFile to POSIX file "~/desktop/file.txt"
> 		set myNewFile to POSIX file "~/desktop/file2.txt"
> 		copy myFile to myNewFile
> 	end tell
> on error myErr number myNr
> 	set myScript to "answer error \"A problem occurred (" & myErr &
")\""
> 	tell application "LiveCode 4.6.1" to do script myScript
> end try
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> What does that error mean? Buy LiveCodeErrors for iPhone now
http://qery.us/v4
> A must-have for LiveCode programmers.
> 
> On 11 aug 2011, at 12:54, Tiemo Hollmann TB wrote:
> 
> > Hello,
> >
> > I want to copy a big folder by script and wait for the result to prompt
an
> > appropriate message.
> >
> > But after fireing revCopyFolder my script runs on without waiting for
the
> > execution of revCopyFolder.
> >
> > Is this a normal behavior? Anything I can do to wait for the finish?
> >
> > Thanks
> >
> > Tiemo
> >
> 
> 
> _______________________________________________
> 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





More information about the Use-livecode mailing list