This works:
tell application "Mail"
set x to every message in inbox whose subject contains "deal"
end tell
Now I want to do the same using the current selection, but this does not work:
tell application "Mail"
set x to every message in selection whose subject contains "deal"
end tell
getting error
"Mail got an error: Can’t make every message of selection whose subject contains \"deal\" into type specifier." number -1700 to specifier
What am I missing?