Bug? -- %ScreenResolution[s]%All% Returns Nothing

Expected behaviour: The %ScreenResolution[s]% Token with the All argument should evaluate to a linefeed-delimited list of the currently connected screens' resolution[s], as per the Token's Wiki page and similar to the behaviour of other Tokens such as %Screen% and %ScreenVisible% when using the All argument.

Actual behaviour: The Token evaluates to an empty string when using the All argument.

Tested On: KM v11.0.4 running on macOS 15.4 and 26.4.1, with one or two displays connected

Demo:
ScreenResolution Bug Demo.kmmacros (2.4 KB)
(Can be run with one or multiple screens connected.)

Workround: Build your own list by For Eaching through connected screens:
ScreenResolution Bug Workround.kmmacros (3.8 KB)

1 Like

Many thanks for posting this Nige (@Nige_S)

It’s going to be very useful to me - since I’m preparing an upgrade to Sequoia on my 2020 iMac very soon.

Greetings from Germany :germany:

Tobias

Does this seem to be an alternative work-around ?

%ScreenResolutions%-1%

?


e.g. perhaps something like:

That will get "all the available resolutions for the left-most screen". I wanted "the current resolution for all screens" for this, which is why I noticed that the All argument resulted in an empty string.

1 Like

Fixed for the next version.

3 Likes