I have an app named SnippetsLab on macOS.
And, setting hide dock icon.
I have tried code like below, but not useful for me.
tell application "System Events" delay 3 -- get frontmost application name set theName to name of the first process whose frontmost is true log theName end tell
I need some AppleScript to distinguish it's main window whether show or not.