but I don't want to have a separate layer for the box! This because I need to use this massively for my projects and when i paste the text and box i have to edit the script manually to match the name of the text layer (so "Text" becomes "Text 2", "Text 3" and so forth)
I found a partial solution to my problem, which is inverting the alpha. I use the drop shadow to create a controllable offset around the text, so that the box is not too tight around the text:
The only issue here is that the text is transparent :-\ I can't find a way to assign a color to it. Any clues?