how can I wait for revCopyFolder execution?

G. Wolfgang Gaich gwolfgang at gaich.de
Thu Aug 11 08:07:59 EDT 2011


Hello Tiemo

from my experiences I can say that revcopyfolder is a blocking command.
If I have in a script:

revcopyfolder "myFolder","myCopyFolder"
answer the result

then the dialog pops up when the copy-process has ended

I'm on Windows 7, may be on Mac it is not blocking (Can't test that)

Best regards
Wolfgang


Am 11.08.2011 14:00, schrieb Tiemo Hollmann TB:
> 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
>
> _______________________________________________
> 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

  * Deutsch - erkannt
  * Englisch
  * Deutsch

  * Englisch
  * Deutsch

<javascript:void(0);>



More information about the Use-livecode mailing list