• Did you order new AirTags? We've opened a dedicated AirTags forum.

jenbenn

macrumors newbie
Original poster
Mar 18, 2009
5
0
I'd like to create a filter/smart folder based on the label of the message (red, yellow, etc). I can't do applescript. Can anyone help me with this? I would so appreciate it.
 

oschrenk

macrumors newbie
May 29, 2012
14
0
I'm working with a german locale, so I have to translate from German to Englisch. Thus wording might be (slighty) wrong.

No need for apple script.

1. Open Mail.app
2. In the menu bar Choose Mailbox > New Smart Mailbox.
3. Give it an appropriate name like "All red mails"
4. Click on the DropDown box most left (as default it should say something like "From")
5. There should be something like "E-Mail with label/flag" (its a single option in the 5th group of the dropdown field). Select this. You should be able to select the color of the label in the next dropdown box.
6. OK

I myself really like smark mailboxes and use some of http://www.makeuseof.com/tag/five-essential-smart-mailboxes-for-apple-mail-mac/

to make my life easier
 
Comment

jenbenn

macrumors newbie
Original poster
Mar 18, 2009
5
0
no such option

There is no such option in the menu. That's why I need a script :)
 
Comment

matrix07

macrumors 603
Jun 24, 2010
6,462
3,059
There is no such option in the menu. That's why I need a script :)

ScreenShot2012-05-30at93021PM.png
 
Comment

jenbenn

macrumors newbie
Original poster
Mar 18, 2009
5
0
Color labels, not flags

Thanks for your screenshot, but I don't want to filter by flagged items, but by items that have a colour label (separate feature from the flag colours) - see screenshot - some flagged, some not flagged, but all different colours. I want to filter by yellow, green etc, whether flagged or not.
 

Attachments

  • Screen Shot 2012-06-27 at 05.57.07 .png
    Screen Shot 2012-06-27 at 05.57.07 .png
    32.8 KB · Views: 92
Comment

jenbenn

macrumors newbie
Original poster
Mar 18, 2009
5
0
I got the labels via this script which I found online

tell application "Mail"
set maillist to selection
repeat with i from 1 to number of items in maillist
set this_item to item i of maillist
if class of this_item is message then
set background color of this_item to blue
-- other colors are
-- gray / green / orange / red
end if
end repeat
end tell
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.