Move selected messages in Mail.app

tell application "Mail"
	set selectedMessages to the selection
	repeat with x from 1 to count of selectedMessages
		set theMessage to item x of selectedMessages
		move theMessage to mailbox "Archive"
	end repeat
end tell

Hi,

or (a bit shorter):

tell application "Mail" to move (get selection) to mailbox "Archive"

:wink: