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
|