• 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: Roy McCoy <email@hidden>
  • Date: Sun, 11 Jan 2009 23:53:24 +0100

Axel Luttgens wrote:

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.

Ah yes, different accounts. I should have thought of that. Using your command I get


tell application "Mail"
move selection to mailbox "INBOX" of account "Gmail" of application "Mail"
end tell


and that works just like all the other ones.


Fuller Luther wrote:

In my script there is a lot of code before finally arriving at ...

repeat with msg in msgList

It looks like I'll have to deal with loops and the message viewer some other time, since I can just move the selected message(s) here.



Thanks,

Roy McCoy
Rotterdam, NL

_______________________________________________
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
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>)
 >Re: Script to remove AUGD from Subject (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Strange "on open" error
  • Next by Date: Re: Numbers '08
  • Previous by thread: Re: Script to remove AUGD from Subject
  • Next by thread: Strange "on open" error
  • Index(es):
    • Date
    • Thread