0

i need email address from Microsoft Outlook mac in c#(xamarin.mac) only way i can do via apple script but in new version it's not work.

this script work only on old outlook

`tell application "Microsoft Outlook"

set email_accounts to {}

repeat with emailAccount in imap accounts
    set end of email_accounts to (name of emailAccount) & ":" & (email address of emailAccount)
end repeat

repeat with emailAccount in exchange accounts
    if exchange type of emailAccount is equal to primary account then
        set end of email_accounts to (name of emailAccount) & ":" & (email address of emailAccount)
    end if
end repeat

repeat with emailAccount in pop accounts
    set end of email_accounts to (name of emailAccount) & ":" & (email address of emailAccount)
end repeat

repeat with emailAccount in ldap accounts
    set end of email_accounts to (name of emailAccount) & ":" & (email address of emailAccount)
end repeat

email_accounts

end tell`

please let me know if any nuget are available or any other i get the email for outllok mac.

i try the apple script but in new version it's not working.

Bhautik B
  • 11
  • 4

0 Answers0