Hi!
I've created two macros, one to set attribute to Hidden (SetAttr SETATTR=H) and another to clear it (SetAttr CLEARATTR=H)
It seems you are unable to use both macros on the same file without deselecting and reselecting said file / folder. I'm not quite sure why, but it seems like a bug to me. This is with the SHOW HIDDEN FILES filter enabled.
Cheers