BTT only triggers a script once, however maybe your script is triggering BTT again? you mention cmd+h as s trigger, and you also call the h key from your script (while cmd is probably still pressed)
BTT only triggers a script once, however maybe your script is triggering BTT again? you mention cmd+h as s trigger, and you also call the h key from your script (while cmd is probably still pressed)