The difference is because the macro group that it is contained in on the first Mac is not always active. Macros are active only when they are enabled, and their parent macro group is enabled and their parent macro group is active.
Almost certainly this is the cause of your problem.
Check the activation settings on the _Finder macro group.
The Assistance window (Help ➤ Assistance) can also help explain why a macro is not firing.