In addition to the Accept All macro, I found the following to work for joining battlegrounds... anyone know a script to leave battlegrounds? Thanks in advance.
/script AcceptBattlefieldPort(1, 1)