How to use variables in automator when using "watch me do" inside Automator app?

I am making an app or workflow where I need to introduce a variable (the cadastre code on a cadastre website) to make recurring queries. I have managed to do it when I have that code copied to the clipboard. I copy the control + c code, then launch the workflow and it works. But if I want to do a more complex workflow where before doing other operations, I don't know how to tell it to use the value of a variable within a routine that I program with the option "record" or "mírame hacer" (there are two ways to call the same in automator, sorry but I. use automator in Spanish, maybe it is not properly translated).

I have tried to use: "get the value of the variable" inside the sequence of actions but I don't know how to call that sequence inside "watch me do".

It occurs to me that I would run automator inside "watch me do" but I imagine there must be a better way.

Posted on Dec 14, 2021 4:13 AM

Reply
1 reply

Dec 14, 2021 12:39 PM in response to virtual_zenit

'Watch Me Do' will almost NEVER create a functional workflow. It is highly literal, and almost all scripts that it generates will need to be tweaked in some way. It's mostly used as a starting block, not as a finished product.


However, to answer your question, more details are needed in order to understand where your variable fits into the flow.


Ultimately, set value of variable takes the result of the previous step and stores it in a named variable. Some actions can then reference that variable at a later point in your workflow. Whether that is useful for you depends on the workflow actions you're using.

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.

How to use variables in automator when using "watch me do" inside Automator app?

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