Disable app hiding when option-clicking into another app on Mac OS
For those of us who use Blender, Cinema 4D or other 3D apps, it's annoying when we option-click into our 3D app and it hides another app that we want to keep open. It looks like there's no way to disable it in System Preferences or Terminal so the best solution I have come up with is to constantly check if an app is hidden and then make it visible in the background via AppleScript.
How to use: Open Script Editor, change "Microsoft Edge" to the app of your choice with the name found in Activity Monitor and save it as an Application, making sure you check "Stay open after run handler" in the Save dialog. The app checks if your app is hidden every half second so not very efficient, but I guess it's the best we've got. Just open the application whenever you are using your 3D app and it'll automatically unhide it:
on idle
tell application "System Events"
try
if exists process "Microsoft Edge" then
tell process "Microsoft Edge"
if not visible then
set visible to true
end if
end tell
end if
on error
-- Silently handle any errors
end try
end tell
return 0.5 -- Check every half second
end idle