Labels in Mail have been something I’ve been missing ever since changing over to Apple’s Mail.app. However, I’ve found out how to create a script that allows me to set the color of (or label) a message.
I’ve tested my scripts in Mac 10.3 Panther and 10.4 Tiger and it works great. I prefer how Apple has scripts set up in 10.3 a little better, however it works.
To install the scripts, first download my labels scripts then use Spotlight (or the find feature in 10.3) to find the Mail Scripts folder. Add the Labels folder that you downloaded into that folder and they’ll be installed. You can also just add them in the main Scripts folder like I did in the screen shot. For me, it provides quicker access in 10.4.
You also have to turn on the scripting menu item. Here is how Apple tells us to do it.
The Script menu gives you easy access to a number of sample scripts provided by Apple to demonstrate the AppleScript capabilities of several Mac OS X applications, including Mail. The Script menu looks like a small scroll, near the right side of the menu bar. To include the Script menu in your menu bar if it’s not already there, open AppleScript Utility and select the “Show Script Menu in menu bar” checkbox.
Once you have done those two things, open the Mail application and you should see a Labels option in the Scripts menu. If you put them in the Mail Scripts folder in 10.4, then you’ll need to make sure to look in there.
The scripts that I provide here are named by color; Red, Green, Blue, etc. If you’d rather have labels that say Urgent, To Do, Later and things like that, just find the script files that you copied to the scripts folder and rename them. Whatever the file name is is what will appear in the Labels folder of the Scripts menu.
To uninstall, make sure to first set your messages back to white, then go back to the scripts folder and remove the scripts.
If you label a message in a thread, then try to un-label it, the thread will stay in color until you close the mailbox window and re-open it. Not a big deal, however kind of annoying.
In the screen shot, I re-named my folder from Labels to Mail Labels and put it in the main Scripts folder of 10.4. I had it in the Mail Scripts folder, however it was to many folders to go though to label a message.
Feel free to ask any questions and let me know what you think of the Label scripts or Apple’s Mail application.
thanks for this awesome script. But here’s the problem, and it’s Apple’s fault, not yours. I would want to create a Smart Mailbox where I could call up all mail labelled with a certain tag. There just seems no way to do that.
Ohh that’s a good idea. I’ll have to see if I can’t figure out how to do that. I know that this is a work around, so there may not be a way. I’ll keep it in mind and let you know if I come up with anything.
nice!!
Maybe to add comments/tags for Spotlight in this applescript and make smartfolders in Spotlight??
this is *exactly* what i wanted when i switched from entourage a few days ago! =) thank you for writing this!! =) i wrote about my switch on my blog (ya an adult blog but i’m a mac fan too =) ). i can’t wait to try this.
i have to say though, switching from entourage was a bit weird at first but i really *love* apple mail. it also displays messages so much faster. i dunno why, but on my ibook g4 it works just great and it’s a bit more friendly, if not simple. i just really missed my colors too.
so thank you again. =)
sav.
Excellent! Thanks, Thomas.
Thank you very much for the script. Works smoothly in my Panther Apple Mail and that was a feature I missed a lot from the days I used Thunderbird and Netscape Mail at Linux.
Thanks for this great little set of scripts. I really appreciate it!
shuffle1
These scripts are great! Now, what I’m looking for is a way to have a smart folder/identify emails that I haven’t responded to… I know Mail keeps track of that (with the little arrow it shows in that ambiguous column containing status, but I don’t know how to access it. I would LOVE a smart folder that I can refer to when I really need to catch up on emailing back people…
Thoughts?
Thanks!
I just switched from Eudora to Mail and was mourning the loss of labels. Found your script on the Apple Discussion Board (at the suggestion of Apple Care). Seems to work great. Thanks!!!
hi, do you know how to search labeled messages ?
Joseph, I haven't figured out to incorporate search yet.
W O W !
You have made me a very happy man.
I have been looking for a way to lable my email for too long. I don’t know how I missed your GREAT script!
Thank You!
This is great. I’ve been trying to work out how to label my messages for ages and this seems to do the job. Cheers!
It’s good to know it’s still working. 🙂
Any chance at any more colors? Or are these the only ones that Mail supports?
Work perfectly with Quicksilver. Type “red” , hit Enter, done! No more clicking this tiny apple script icon!
Brilliant! Many thanks. I downloaded and it started working flawlessly. One question: In your screen shot above Mail Labels is at the top of the list. How do you do that?
Josef, note the space in the beginning of the folder name? Much as the Apple Menu Items did in Mac OS 9, Apple sorts space prefixed folders ahead of the alphabet in the list of folders in the Script Menu.
Thanks gopher. I did notice that little space but thought it was my imagination! I’m new to Mac (thank goodness) and didn’t know the space worked for sorting. It does now! Great! Thanks again.
Thanks for answering that one gopher. 🙂
Is there any way to create shortcuts to this? I really needed labels after switching over from Thunderbird, but it’s kind of cumbersome to go through all the menus in the scripts menu to get to the labels. Anyway to make it shorter?
Thanks!
Not that I’ve found. But that’s why I switched to Thunderbird. 🙂
How do you get Quicksilver to understand that this script exists? I type “blue” and get “bluetooth” or “red” and get “red herring”. What’s the trick?
Hopefully someone answers you back monomail as I have no idea. It would be handy though. 🙂
For QuickSilver integration, go to the preferences in QS, then click on catalog at the top of the window. Go to Scripts and make sure either the User or All Users is checked, depending on if you place the scripts in the /Library/Scripts/Mail Scripts folder, or ~/Library/Scripts/Mail Scripts. Hit the refresh symbol at the bottom of the window (twisted arrow thing).
Now you can highlight a message, activate QS and type “red”, and run the script when it shows up. It might not be the first item listed in the search result, so arrow down until you find it.
Thanks everyman!!
HI, Very nice! Is there a way to label the emails you send to have color when they show up in someone else’s mailbox? Apple does this for all their email ads!
Thanks!
Jonathan – Apple doesn’t send out labels with a message. Rather every Mail app has a rule pre-installed to change the color of the background of messages from Apple.
So, I gather there is no way for the common man to perform such shenanigans? Rats!
Cool!
You can color individual messages by using the colors palette. Select message, select color, you’re done. It’s very easy. See here:
http://www.macworld.com/weblogs/macosxhints/2006/05/mailcolor/index.php
You can also write rules that apply colors.
Thanks, Gluefreak!
I’m using your Mail script in Tiger and loving it. What will happen to the script and to mail that’s already color-labelled when I upgrade to Leopard?
I did an archive and install with Leopard and the labels stuck around. 🙂
Just did a standard Leopard install and all my labels are also intact.
You can also select the email and hit Apple + Shift + C to bring up the colour picker window and allocate a colour to label the email.
Have you noticed that Mail in Leopard has a sort by color option? See the View->Sort by menu.
I don’t remember if this was in the earlier versions…
Does anyone know how to change the color of the background of emails (i.e. the “paper”) like you can in Eudora or Thunderbird?
Thanks!
Jim – That’s a great find. I do believe it’s new.
Can I create a column in Mail and sort by your labels?
Sounds great, but, that’s my big priority (moving from Eudora).
I am also recently returned to Apple so am a bit gun shy.
Many thanks.
Hi Pete. You may want to check out the MailTags plugin to get added functionality. Also, Thunderbird is a great email client that probably is a closer match to Eudora.
Thanks for the script it was just what I was looking for. Thanks also to Adam for the Shift+Apple+C Trick – great!
just wanna thank you. I’m so happy now! 😀
best wishes from Germany, have a nice Christmas.
Just switched from Thunderbird to Apple Mail.
To cannot label messages was really a great dissapointment.
I thought about going back to TB because I used this function a lot.
But now I can in Mail, so
thank you
thank you
thank you
veeery much for these scripts!
You saved my life! 😉
All the best for you,
Toddy
I just switched from entourage to mac mail and I miss being able to color code my folders (mail isn’t so important). is there a script for color coding folders?
Not that I know of.
just switched from Entourage to Mail. Using OS 10.6 and i can’t get the script to work. Any suggestions?
I haven’t tried it in 10.6 as I don’t have it yet.
Have been waiting before switching to Snow Leopard to make sure some of my favorite 3rd-party add-ons (like this one) work on 10.6. Definitely want to hear more about this from other users and from the scripts authors.
OK, got it working. i had it in the wrong folder. your wonderful script DOES work in 10.6.
QUESTION: any suggestions for how to assign quick keys/macros/buttons on the tool bar to activate the labeling? I love the feature, but it is cumbersome to follow through three sub menus.
I wish I knew an answer that one. We need a developer to turn this into an app. 🙂
Does this still work for 10.6.7?
THanks PB
its 2011 and I still vonder why developers can’t build paid app or plugin just to make this work. Developers there is a need for coloring your mail as you can se 🙂
Congratulations for these scrips.
They are greats!. Now, next step could be an App to label the emails in the iPhone or iPad. Do you think that this could be possible?
Thank you
Raul
I don’t believe iOS has any Apple Script support which is what is needed to make these work.
Hi, does this still work in 2015 on Yosemite? 🙂
No idea. I haven’t tried it in a long time.