Methyltransferase involved in the biosynthesis of methyl anthranilate in response to stresses. Utilizes anthranilic acid as substrate. Produces exclusively the O-methyl ester. Can also use benzoic acid as substrate. Low activity with salicylic acid. anthranilate + S-adenosyl-L-methionine = O-methyl anthranilate + S-adenosyl-L-homocysteine benzoate + S-adenosyl-L-methionine = methyl benzoate + S-adenosyl-L-homocysteine S-adenosyl-L-methionine + salicylate = methyl salicylate + S-adenosyl-L-homocysteine Up-regulated by herbivory and jasmonic acid, but not by salicylic acid. Belongs to the methyltransferase superfamily. Type-7 methyltransferase family. SABATH subfamily.