Use smart folders instead of rules to achieve that?![]()
tell application "Mail"
activate
tell application "System Events"
tell process "Mail" to keystroke "4" using command down -- needs to select the sent mailboxes
tell process "Mail" to keystroke "A" using command down -- select all messages
tell process "Mail" to keystroke "L" using command down & option down -- run all rules on the messages
end tell
end tell