AW: AW: how can I wait for revCopyFolder execution?
Tiemo Hollmann TB
toolbook at kestner.de
Thu Aug 11 07:34:04 CDT 2011
Thanks Mark, I will give it a try.
@Wolfgang, perhaps the issue, why revCopyFolder didn't waited in my case
(Mac) is the duration. The copying in my my case lasts about 10 min (8GB).
Perhaps applescript (which is probably wrapped by the rev command) returns
the result already after a certain amount of time, as Mark says. Who knows,
programming sometimes is a myst.
> -----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 14:15
> An: How to use LiveCode
> Betreff: Re: AW: how can I wait for revCopyFolder execution?
> Hi Tiemo,
> Actually, LiveCode waits until the AppleScript returns a value, indicating
> successful compilation or failure, but it returns this value before the
> copying has finished. So, it is a combination of AppleScript returning a
> early and LiveCode not reading additional results from AppleScript.
> It is possible to return a value from AppleScript to LiveCode:
> -- cScript custom prop
> set x to 1+1
> return x
> --inside LiveCode:
> put the cScript of me into myScript
> do myScript as AppleScript
> put the result
> You could try to return the message instead of running a LiveCode script
> inside AppleScript and see whether AppleScript waits for the copying to
> until it returns that value. The script would look like this (pseudocode):
> on error
> return value
> end try
> return different value
> Other commands that don't wait are open process and IIRC the popup
> I'm sure there are a few more but I don't know the entire list by heart.
> 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
> A must-have for LiveCode programmers.
> On 11 aug 2011, at 14:00, Tiemo Hollmann TB wrote:
> > 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
> > 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
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
More information about the use-livecode