• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't Get Mailbox of Selected Message in Mail.app (10.4)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Next by Date: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Previous by thread: Re: Using selective color command/ any decent Photoshop Applecripts guidebooks out there?
  • Next by thread: """
  • Index(es):
    • Date
    • Thread