I’m simply trying to add some functionality to Mail. I want to be able to go to my custom mailboxes through keyboard shortcuts, and I thought AS would (should?) be one way to accomplish that.
As for your suggestion, what would ‘mailbox1’ do for me??
tell application "Mail"
set selected mailboxes of message viewers to {mailbox "Sent"}
end tell
You can use the full path to the mailbox as in the list returned from:
tell application "Mail"
set myList to mailboxes
repeat with myAccount in accounts
set myList2 to (mailboxes of myAccount)
set myList to myList & (contents of myList2)
end repeat
return myList
end tell
I don’t know what took so long for someone to see my post here, but it doesn’t matter, because you figured it out for me. For that, I’ll be forever grateful!!