Plugins and Variable Names


#1

Consider this plugin:

…and pretend the label for the text box says “Escape Text” (which it will, when Peter fixes his rounding error :stuck_out_tongue: )

So the name of the variable that gets created is “Escape Text”. This name could conflict with a variable the user already has, which would result in their variable’s content being inadvertently changed.

Is this something we should worry about? And if so, is there anything we could do about it?

Thanks.


#2

No. There is an environment variable named KMPARAM_Escape_Text. There is no Keyboard Maestro variable involved in running the plugin script (except the result which you have selected Save to variable “Variable”).


#3

Awesome! I thought I checked for that, but I probably had the variable laying around from previously. Thanks!