Preview.app missing from KM's Applications Palette

macOS Sequoia 15.5
KM 11.0.4

After enabling KM's Applications Palette, I found that Preview.app was missing from the palette.

Preview is active; it has an icon with a black dot in the Dock, and it is accessible via macOS' Application Switcher.

Preview is not present in KM's Preferences: Excluded pane; actually, no applications are present in it.

What do I need to do so that Preview's icon is included in KM's Applications Palette?

Thanks in advance!

The following AppleScript script launches Preview, but Preview's icon still does not display in KM's Applications palette.

tell application "Preview"
activate
end tell

Problem solved (at least temporarily) by quitting and relaunching Preview.

:thinking:

I believe there are ways for Preview to appear to be running, but not actually be running, but I'm not really sure. It seems pretty rare.

Hi Peter,

Thanks for your posting.

My scenario was the opposite; Preview was running and was present in the Dock, but appeared not to be running as indicated by its absence from KM’s Applications Palette.

Barry

Yes - it is likely it was technically not running, but the system was pretending it was running, and thus the system knew to pretend its icon in the Dock, but the normal APIs don't show the running process.

I have the same issue, and Preview is definitely running — I've been using it to read a PDF.

☞ Update to the above: manually quitting and relaunching Preview did make it show up in the KM app switcher again. Maybe the system had terminated a dormant instance of Preview at some point, and then I relaunched/reactivated it by opening my PDF, but the relaunch for whatever reason didn't register with KM. In any case, before I manually quit and relaunched Preview I was actively using it (scrolling, etc.), but it wasn't visible in the switcher.

I think there are some cases where apps with strange activation modes (Preview and Calendar?) that can “sort of” quit when still apparently running cause Keyboard Maestro to get confused.