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
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
acypher ~ What is this Set action you're using?...
...It's not the standard Set variable action I'm using to get the correctly adjusted date:
In your shortcut, please right-click that Set action > choose Show Info and tell me (or screenshot) what it says.
õ¿õ¬
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.
õ¿õ¬
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.
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!
acypher wrote: "...which looks almost right."
Yes, that's why I overlooked that Set action the first time you screenshot it. Anyway, good to know it's all working now.
õ¿õ¬
acypher ~ It's because you haven't added a Set variable action to change the value of the wakeupTime variable:
õ¿õ¬
Seems right, but that's not it:
When I run it, I get:
Why can't I change wakeupTime variable on my MacBook Air?