Resetting mail message categories

having massive trouble adding to the existing categories of a message.

No problem completely resetting a messages categories:
set theMessage’s category to {friendsCat, workCat}

But is the above code completely overwrites any previously existing categories…does anyone know how to add new categories instead? :shock:

Thanks for your help!

set category of x to (category of x & {first category whose name is "Junk"})

Where “x” is a reference to a message.

you are an applescript angel for helping me out!! seriously, thanks – it works beautifully. :slight_smile: