Macro help - trying to do a spec change, gear change and use best-in-slots macro

As above, trying to work out a macro that will change my spec from guardian to balance (or the reverse), change into the right gear set and use the out of combat ability of best-in-slots to change into the appropriate version for the spec im switching into

what I have for the balance version is:
/equip Best-in-Slots
/use 16
/equipset Balance
/run C_SpecializationInfo.SetSpecialization(1)

Guardian is the same except using Guardian set and SetSpecialization(3). Problem I’m having is that while the first part works fine (equips and uses the maces function just fine), it won’t do the gear or spec change part unless I hit the macro button a second time. Anyway I can make do everythign in just one click ?

I cant offer a solution to the macro but the in game gear tab has an option to make the premade sets auto switch with your spec, thatd remove the need for the line that switches gear sets so youd only need the part that switches spec and uses best in slots change ability.

Hmm, didn’t know that. Will mess around with it and see if it makes a difference. Thank you for your input