Can't Get Mailbox of Selected Message in Mail.app (10.4)
Can't Get Mailbox of Selected Message in Mail.app (10.4)
- Subject: Can't Get Mailbox of Selected Message in Mail.app (10.4)
- From: Brett <email@hidden>
- Date: Fri, 16 Sep 2005 10:52:35 -0400
I can't seem to get the mailbox of the selected messages in Mail.app
under 10.4.2 I can get the selected messages and iterate through
them, but the mailbox property of each is empty.
I can't work with the selected mailboxes property of the Mail Viewer
because I want my script to work with smart mailboxes and I need to
know the mailbox that a message is actually stored in.
The following script returns an error that theMBOX is undefined. From
what I can tell, this should work... as long as a message actually
has a mailbox property.
tell application "Mail"
set theSel to selection
set msg1 to item 1 of theSel
set theMBOX to mailbox of msg1
set theMBOXname to name of theMBOX
end tell
Thanks!
- Brett
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden