You can do it like this:
:bufdo execute "normal @a" | write
The normal command will run the macro, but it has to be run using :execute, otherwise the pipe character will be interpreted as a normal-mode character.
You can do it like this:
:bufdo execute "normal @a" | write
The normal command will run the macro, but it has to be run using :execute, otherwise the pipe character will be interpreted as a normal-mode character.