Technically you don't need to use a variable if you already know the folder's path. You simply put the path right into the set file action.
In the example macros variables are used to temporarily save the path of whatever folder you are interacting with that way KM knows where to apply the icon.
See this example (same folder, just two different ways of supplying the path):