Great script! Tested it and it works like a charm! It did not however work at first. I tried editing it, but it turned out it was a fluke and that for some reason the text layer just simply didn't save the "fontPostScriptName", and the script kept breaking here: var aFont = styleDesc.getString(stringIDToTypeID('fontPostScriptName'));
But after changing the font back to itself, it worked just fine. Strangely enough the font is just myriad pro.