Cursor to Click on Menu Bar Control Centre

Apologies for what may be an obvious answer.

I am trying to automate changing the Display Presets at different times of the day with the first step being clicking on the Control Centre icon in the menu bar.

I have been trying to use Move or Click Mouse action but cannot get it work.

Is this possible and, if so, how.

Thank you.

It would help if you showed your not-working attempt.

This works for me, though using an image may be problematic if you are using macOS 26's see-through menu bar. Note how the search area is constrained to a)speed things up and b) reduce false positives:

Better still, Control Centre can be opened by keystroke -- Fn + C. The modifier doesn't show in the keystroke field so use the dropdown menu:

If neither of the above work for you, try AppleScript. We covered this in one of your other threads but, for completeness:

tell application "System Events"
	tell process "Control Centre"
		tell menu bar 1
			tell item 1 of (every menu bar item whose description is "Control Centre")
				click
			end tell
		end tell
	end tell
end tell

You may want to use AppleScript anyway, since you'll likely need it for subsequent actions in Control Centre.

1 Like

For complete completeness :upside_down_face:, the following script also works. However, although it is more compact than @Nige_S’s method, it lacks its clarity.

tell application "System Events" to tell process "Control Centre"
	click menu bar item 2 of menu bar 1
end tell

We have all been referring to the “Control Centre”. Those on systems which use USA spelling would need to change that to “Control Center” in either script.

Yes, and I wonder whether it might be possible to bypass the Control Centre, depending upon the aim.

Is item 2 a given now, with macOS 26's Control Centre menu bar configuration options? You can't drop anything between that and the date/time on Sequoia, but I haven't tried it on Tahoe.

1 Like

I see! I am still using MacOS 14.8.2 Sonoma for now.[1] In hindsight, it makes sense that Apple’s tinkering would have broken that script, especially since it is, as I mentioned, opaque—at least to me. I just change the digits till it works for any particular case!


  1. I will upgrade MacOS when the software I need, not Apple, demands it. :wink: ↩︎

1 Like

@kevinb and @Nige_S

Appreciate the thoughtful responses, they are helpful (especially when I am on the wrong end of the learning curve).

I can see that becoming proficient in KM will require becoming proficient in AS as well! :frowning:

I will think this through over the next few days weeks noting that it should, if nothing else, pull me up the curve :).

Not at all -- AS is just another tool you can use in KM.

You should be able to do what you want with KM "native" actions, particularly since there's always "Click on Found Image" to fall back on. That would, perhaps, be a better way to become "proficient" in KM before turning to AS, because the tricks you learn when finding/waiting for images are more generally applicable.

Give it a go for this job and see how you get on.

@Nige_S , I am responding to your earlier posts:

  1. As to my attempt that failed, here is the action and error message:

  1. As to your version which worked for you but did not work for me, the action and error message are noting the error message is unchanged.:

  1. As to your comment:

I will defer to you and try to do everything here in KM and see where I get :). I need to get this screen capture to work!

How are you getting the image to put in the action's image well? The most reliable method is to ⌃⇧⌘4 then drag over the area you want to put the screenshot on the Clipboard then Paste into the image well -- other methods, like capturing to a file which you then open in Preview and Copy an area from, often have problems with resolutions.

And beware the error message! It's the same when either no image is found or no unique image is found so it's a good move to troubleshoot, as you did above, by changing "Unique" to something else.

I am getting the image as you noted with SHIFT+CNTRL +CMD+4

It's working for me, now on Tahoe with both transparent and non-transparent menu bar.

Start by trying your "main screen" version with the "topmost" option -- that'll take the area out of the equation and stop it from making multiple matches. If that works you can start narrowing things down.

If it doesn't work, try the Fn (or Globe key) C method. Once you have popped the window you may have better luck using image detection to target the panel you're after -- or, since the layout is pretty static, you could use "Click at: x,y" with absolute coordinates.

@Nige_S

Appreciated and will give a go in a bit.

I am onto an another approach which is through system settings which is close to working. Will keep you posted though I suspect will abandon this as it is too had under macOS 26 with the liquid display.

In the meantime please the post here which is a working versions of the main objective (i.e., still a few tweaks to go)