Hi all,

> Am 23.11.2019 um 13:24 schrieb Klaus major-k via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> Hi friends,
> 
> can we check if our standalone is currently active, means in
> the "foreground" or if it is not active? Know what I mean?
> If yes, how can we do that? LC? AppleScript?
> 
> I want to alert the user if the app is active, but not if the app 
> is not active.

I found this snippet on the net:
------------------------------------
tell application "System Events"
        set activeApp to name of first application process whose frontmost is 
true
        return activeApp
end tell
--------------------------------------

Works fine in the AppleScript Editor, but I get "execution error" when DOing 
this in LC!?
Any hints appreciated!


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


_______________________________________________
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