Use a shortcut as a function?
Hi, I’m not very experienced with shortcuts but I’m trying to make a shortcut that acts as ‘function’
For example, I have a shortcut that computes what week of the year it is, and uses that as part of the name of a note or whatever. But I want to make it so that I don’t have to duplicate it every time I want to use it with a new shortcut.
Ideally this is the flow I’m looking for :
- shortcut “Caller” runs shortcut “week”
- “week” determines it’s the 23rd week of the year, and saves this to a variable
- “week” returns the variable to “Caller” or whichever shortcut called it.
The simplest way I can think of doing this is to pass a dictionary containing the name of the calling shortcut to the function, and then use that to go back? But like, then it will go back to the beginning of the “caller” shortcut, and I want it to continue..