bring LC to front after a launch command

Thierry Douez th.douez at gmail.com
Fri Oct 5 03:14:37 EDT 2012


Hi everyone,

2012/9/28 Thierry Douez <th.douez at gmail.com>:

> set the systemWindow of stack...


For the record, this solution finally doesn't work in my case.

As I want to launch an app in the background from a modeless
stack in LC IDE, the systemWindow property is too restrictive.

It hides the LC menus, all the answer and ask dialog
are behind my main stack window.

So, the one-line solution was:

shell( "open -g - a Myapp" )

The -g option keep Myapp in the background. Works beautifully.

Regards,

Thierry

>
> Thierry
>
> 2012/9/28 Mark Schonewille <m.schonewille at economy-x-talk.com>:
>> Thierry,
>>
>> On Windows, you can use the VBScript on this (old) site http://runrev.info/Activate%20Application.htm and on Mac you can use AppleScript:
>>
>> tell application "Standalone.app" to activate
>>
>> --
>> Best regards,
>>
>> Mark Schonewille

>> On 28 sep 2012, at 09:38, Thierry Douez wrote:
>>
>>> Bonjour René,
>>>
>>> 2012/9/28 René Micout <rene.micout at numericable.com>:
>>>> Hello Thierry,
>>>> Is this a solution to (for ?) your problem ?
>>>>
>>>> set the systemWindow of stack "X" to true
>>>
>>>
>>> From the  Dictionary, there is no effect on Mac, but with a comment of
>>> a Livecoder that it's not true !
>>>
>>> I'm checking it right now.
>>>
>>> Merci
>>>
>>> Thierry




More information about the Use-livecode mailing list