Robert Sneidar wrote:

Richard I don't know what you mean by synchronously. If you mean simultaneously while the 
LC engine goes on to do other things, this works "asynchronously" for me on OS 
X 10.6.8 and LC 5.5.3. I put this in a button:

on mouseUp
    answer file "Choose a word document:"
    put it into theFile
    if theFile is empty then exit mouseUp
    repeat with i = 1 to 10
        wait one second
        put i
        if i = 1 then launch document theFile
    end repeat
end mouseUp

While the file is loading and Microsoft Word is launching, the counter keeps 
counting. This is what I would expect. Once the Finder gets the command to open 
the document, it could care less what other apps are doing, even the app that 
told it to open the document in the first place.

Are you saying that on Linux, the command waits until the document and 
associated app is launched? This may be due to your particular flavor of Linux 
file manager not being multithreaded, but I admit I am ignorant about this 
aspect of Linux, or Linux in general!

Yes, apparently only on Ubuntu - or maybe even just my Ubuntu. I haven't heard back from other Ubuntu users, but Warren was kind enough to test on openSUSE and Mint and he sees the asynch behavior we see on OS X, which is what I've come to expect from "launch document".

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

_______________________________________________
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