@peternlewis - Let's say I use Copy as Subroutine for a subroutine that doesn't return a value, and paste it into a macro.
Then later I change the subroutine to return a value. All actions that call this subroutine now have "Save result to" set to "VarName".

Can you please change this to a non-global variable? Something like "LocalVarName" or similar?
Thanks.
2 Likes
I have changed it so that if the subroutine does not have a value when Keyboard Maestro is launched, then the result variable will be cleared out. If after that you enable a return value, then the Execute Subroutine actions will have no variable specified and you will need to set the variable in each one to use it. It does not really make sense for the action to suddenly start setting a variable value in all macros.
I have also changed it to not having a result variable by default.
But if you set a result variable, and then change the macro to not have a result, the result variable will not be cleared in the action until the next time the editor is launched.
4 Likes