Edit: oh this is more of a reset command for tokens (all bars are reset to max and status markers are reset), not just a healing of damage taken in one bar. :) I should have read the script a little closer. Oh well, everything I said still applies and would be a good idea!!! I'll have to get to work on that maybe? I'm still going to take your idea for a reset script and incorporate it into mine as well! :)
Another good idea!!! You are on a roll. Probably for most its easier to just change the bubbles themselves, but I like options! Its too bad we can't ask for input during a macro. Then we could put commands like this in a macro button and then you click on it, type the damage and hit enter. I think I'll be adding this to my framework utility script, with your credit for the idea of course! If it doesn't already it should be able to damage the token. :)
Another idea I had for a script which I simply do not have time for was Grouping. Not graphically, but by name.
!group Ateam bob joe dwarf rogue
Then you could use the group name in scripts such as yours.
!heal Ateam 20
Good for those channel energy clerics in Pathfinder, but even more useful might be
!damage Ateam 30
Although you have saves complicating matters, etc. so maybe not as useful.
Also maybe if the script took multiple tokens to heal on one line?
!heal joe bob rogue dwarf 20
But you do run into problems with spaces in the names of tokens I guess. Make the user put ' ' around the names?
I'd make some global variables the GM can set to let them decide which bar should be for HPs by default, etc.