• 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
Re: Script to remove AUGD from Subject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to remove AUGD from Subject


  • Subject: Re: Script to remove AUGD from Subject
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 11 Jan 2009 16:12:16 +0100

Le 11 janv. 09 à 14:26, Roy McCoy a écrit :

[...]

Coincidentally, here's some more Mail strangeness that I encountered right after reading the above message. First of all, this simple little script didn't work:

tell application "Mail"
	move selection to mailbox "Inbox"
end tell

while this one, for example, does:

tell application "Mail"
	move selection to mailbox "UEA/UK"
end tell

So it turns out like with smart mailboxes before, that Inbox isn't a real mailbox?

Hello Roy,

Having a look at Mail's dictionary, it appears that the application has some top level mailboxes that are reachable through properties.
For example, there is the inbox property.


Being mailboxes, those top level mailboxes may have other mailboxes as elements; so, let's try this one:

	tell application "Mail" to get mailboxes of inbox

It now clearly appears that each account has a mailbox named "INBOX"; but Mail itself doesn't have such a mailbox.

HTH,
Axel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Script to remove AUGD from Subject
      • From: Roy McCoy <email@hidden>
    • Re: Script to remove AUGD from Subject
      • From: Ed Stockly <email@hidden>
References: 
 >Mail Script to remove AUGD from Subject (From: Geoff WALLACE <email@hidden>)
 >Re: Script to remove AUGD from Subject (From: Michelle Steiner <email@hidden>)
 >Re: Script to remove AUGD from Subject (From: Roy McCoy <email@hidden>)

  • Prev by Date: Re: Script to remove AUGD from Subject
  • Next by Date: Re: Script to remove AUGD from Subject
  • Previous by thread: Re: Script to remove AUGD from Subject
  • Next by thread: Re: Script to remove AUGD from Subject
  • Index(es):
    • Date
    • Thread