macOS, is my app active?

Trevor DeVore lists at
Sat Nov 23 11:27:48 EST 2019

On Sat, Nov 23, 2019 at 8:11 AM Klaus major-k via use-livecode <
use-livecode at> wrote:

> wow, lots of infos, thank you very much, but maybe a little overkill for
> me.
> It would suffice for me to get this little snippet to work:
> -----------------------------------------------------------------
> 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!
> Thanks a lot!

You’re welcome. I don’t know the solution to your problem with AppleScript.
If you do go the AppleScript route just check that you don’t trigger any
security warnings in later versions of macOS. Maybe that isn’t a big deal
for your app but it is worth checking.

- -
Trevor DeVore


More information about the use-livecode mailing list