Why can't I change wakeupTime variable on my MacBook Air?

I don't understand why these actions don't change the value of the wakeupTime variable.

When asked, I set the Time to 9AM

What I get is:


[Re-Titled by Moderator]

MacBook Air 13″, macOS 14.7

Posted on May 25, 2025 01:43 PM

Reply
7 replies

May 26, 2025 02:44 PM in response to acypher

acypher ~ Although Shortcuts appear to be programs, they handle parameters differently. See the section "Reveal the action that generated a variable" here:


Adjust variables in Shortcuts on iPhone or iPad - Apple Support


...Follow the instructions there to reveal where your last action (Show alert) is getting its wakeupTime parameter.


I suspect you didn't Clear the wakeupTime parameter from your last action and re-input it — so it's still getting its value from the original Set variable action, instead of the default previous action.


õ¿õ¬

May 28, 2025 11:31 PM in response to acypher

Alancito: Thanks for the information about Shortcut variables.

But the problem remains. I am changing wakeupTime's value to the new value of AdjustedDate.

Here's the Reveal:




Also, here's an animated gif showing it being set (I'm not sure it will display properly on this page):



This shows that even though WakeupTime is set to AdjustedDate, its value doesn't actually change.



May 29, 2025 12:52 PM in response to acypher

Alancito: Aha! You found the problem.

I was using

which looks almost right.


When I search for actions, I get

So in fact, I was setting a Keyboard Maestro Engine variable, and not a Shortcuts variable.


Poor UX, but I'm glad you caught it.

Thank you, Alancito, for your continued support.

The shortcut works fine now, and I'm back in business!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why can't I change wakeupTime variable on my MacBook Air?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.