Hiding the Dock Icon and Menubar for apps can easily be done by adding the bellow in the Info.plist file
Is there a way to do this dynamically with some declares? Basically I need to hide/unhide the Dock Icon (and Menubar) in-code.
Found it with MBS
dim myProcess as ProcessMBS
if myProcess.TransformProcessType(myProcess.kProcessTransformToUIElementApplication) = 0 then
To show the Dock Icon again:
if myProcess.TransformProcessType(myProcess.kProcessTransformToForegroundApplication) = 0 then