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!
Bob
On Jan 18, 2013, at 9:35 PM, Richard Gaskin wrote:
> I've somehow never noticed that on Linux the "launch document" command
> behaves synchronously, while it's not synchronous on Mac or IIRC on Windows.
>
> This winds up being especially bad for RunRev: you can't use the IDE after
> choosing Help->User Guide.
>
> I've filed a bug report for the IDE issue:
> <http://quality.runrev.com/show_bug.cgi?id=10649>
>
> Before I file a report on "launch document" itself I wanted to check to see
> if any of you folks can think of a reason why this should be synchronous, and
> if you know enough about GTK to point me to the API which could be used for
> asynchronous launch.
>
> TIA -
>
> --
> Richard Gaskin
> Fourth World Systems
> ____________________________________________________________
> [email protected] http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode