• 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 works on my machine, returns 0 results on another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script works on my machine, returns 0 results on another


  • Subject: Re: Script works on my machine, returns 0 results on another
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 18 May 2014 09:42:51 +0200

Le 17 mai 2014 à 19:10, Alex Hall a écrit :

> [...] Is there a setting, something weird in Gmail (maybe his Sent folder isn't called Sent?), or some other idea that will get this to work?

Hello Alex,

Indeed, mailboxes may be organized differently from one account to another, especially with IMAP accounts. For example, the mailbox used for sent messages in a Gmail account is named here "[Gmail]/Sent Mail"; on another IMAP account, it is named "SentMail".

Mail's properties said to refer "top level mailboxes" allow to handle mailboxes having a similar purpose in a systematic way across accounts.

In the case of your script, the 'sent messages' property synthesizes all mailboxes used for storing sent messages; you may use it as some kind of virtual mailbox, or for referencing the underlying account mailboxes:

	tell app "Mail" to get mailboxes of sent messages

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


References: 
 >Script works on my machine, returns 0 results on another (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Script works on my machine, returns 0 results on another
  • Next by Date: Re: Script works on my machine, returns 0 results on another
  • Previous by thread: Re: Script works on my machine, returns 0 results on another
  • Next by thread: event-driven scripts?
  • Index(es):
    • Date
    • Thread