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.