Local variable question [SOLVED]

I know this is probably obvious but here it goes...
I have a macro that reads all Finder selected items and saves that list as a variable Local__list

If I select items 1-5 and hit the shortcut to run the macro and then select items 6-10 and hit the shortcut again to run the same macro, while the first instance is still running, the Local__list variable, even though it's the same macro and the variable name, those are 2 completely separate processes, meaning that each local variable is exclusive to the macro instance running, regardless of sharing the same macro and variable, correct?

So my list of 1-5 would not be affected by me running the macro again while selecting completely different items.

Yes, local_ variables are exclusive to the macro that set them.

-rob.

1 Like

thanks rob!
I assumed that would be the case, but it's always better to ask, just in case :wink:

It seems it always comes back to bite me: I default to everything local, then wind up adding a sub-macro, and then have to change a number of them to instance variables :).

-rob.