• 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
How can I get the email address of a Mail account?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I get the email address of a Mail account?


  • Subject: How can I get the email address of a Mail account?
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 29 Sep 2015 20:40:16 +1000

G’day scripters.

I can’t find anything on the net regarding this, so I’m asking the Gurus.

I’ve got a dialog box that asks the user to choose a mail account to set a mail rule to, but I’m also trying to automatically send an email back to the same account that lists previous ftp downloads from my App.

So, I need, if possible, to retrieve the actual email address of that same account.

Example, account ‘Gmail’ has an email address of ‘email@hidden’.

Is this possible, and if so, how please?

Regards

Santa

tell application "Mail"
set inBoxList to name of every account whose enabled is true as list
if (count of inBoxList) = 1 then
set theAddRuleMailbox to item 1 of inBoxList
else
set theAddRuleMailbox to choose from list inBoxList with prompt "Please choose an Account to which to add the Mail rule " & return & return & "\"Move to '* items to shift'\"." & return with title "Mail Manager add Mail rule" OK button name "Choose this Inbox Account" cancel button name "I'll set the rule myself"
end if
# set temp to email address of account theAddRuleMailbox
end tell

 _______________________________________________
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: How can I get the email address of a Mail account?
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: tags manipulation
  • Next by Date: Re: How can I get the email address of a Mail account?
  • Previous by thread: Re: Switching Language Inputs in a Flash
  • Next by thread: Re: How can I get the email address of a Mail account?
  • Index(es):
    • Date
    • Thread