The 'text' language identifer appears as applescript rather than text

shouldn’t you just omit text since it would default to that?