Using KM 6 on Mavericks.
I’ve got a KM macro that uses several variables.
I would like to initialize all of these variable in one Action at the top macro.
Any Action where I can type:
Set VarA to %DELETE%
Set VarB to %DELETE%
Set VarC to %DELETE%
etc.
OR must I add a separate Action for each variable?
( FWIW when you experiment with Yosemite JXA, you may find that it works well to use KM variables to store JSON strings - easily serialising and retrieving an arbitrary number of (possibly nested) key-value pairs in one string variable with the built-in functions JSON.stringify() and JSON.parse() )
There is no way to do that. Well, in 7.0 you can do this:
- For Variable Index in Number Range 1 to 10
- Set variable “Var%Variable%Index%” to text “%Delete%”
Why not just put all the Set Variable’s in a Group (er, sorry, version 6, in a Repeat 1) action and then undisclose it (and in 7, rename it to “Set Variables” (sorry, couldn’t resist)).