AW: how can I wait for revCopyFolder execution?

Tiemo Hollmann TB toolbook at kestner.de
Thu Aug 11 10:17:07 EDT 2011


Ok, then it's the difference between Win and Mac
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von G. Wolfgang Gaich
> Gesendet: Donnerstag, 11. August 2011 16:06
> An: How to use LiveCode
> Betreff: Re: how can I wait for revCopyFolder execution?
> 
> Hello Tiemo,
> 
> my test was with a 26GB folder with many, many subfolders. it took 24
> minutes and the script was hold until all folders and files were copied.
> 
> Best
> Wolfgang
> 
> Am 11.08.2011 14:34, schrieb Tiemo Hollmann TB:
> > 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.
> > 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 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
> > value
> >> 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
> > finish
> >> until it returns that value. The script would look like this
(pseudocode):
> >>
> >> try
> >> 	copy
> >> on error
> >> 	return value
> >> end try
> >> return different value
> >>
> >> Other commands that don't wait are open process and IIRC the popup
> > command.
> >> 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
> > http://qery.us/v4
> >> 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
> > 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
> >>
> >> _______________________________________________
> >> 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
> 
> 
> _______________________________________________
> 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