Trigger when specific app created a new window

I’m trying to make Preview perform “Zoom to Fit” for all documents it opens. Best I can achieve so far is to use “Focused Window Did Change” with advanced condition active_app_name == "Preview", but that doesn’t check whether the window is newly created, so would trigger everytime I switch to a Preview window.

Is there any trigger or other advanced option I’m overlooking? I could probably track all Preview window changes with variables and only trigger the action if the number increased, but I’d prefer a simpler solution if one is available.

I’m not sure if I was blind before or whether it was added in the meantime, anyway there is (as of 6.188) indeed a trigger “Specific App Did Create Window” that does exactly what I want. If that was recent addition, then thank you @Andreas_Hegenberg!

Yep, this is pretty new! I needed it for some upcoming features :wink: