Pari Baker
Pari Baker

Reputation: 716

Get full name of outlook account with applescript

How can I get the name of an outlook account in microsoft outlook using applescript I've tried tell application "Microsoft Outlook" set name to name of (get account) --Creates HTML signature using html code make new signature with properties {name:"Official Signature", content:html_content} end tell but it errors out as Can't get name of account. The account is a class and name is a property

Upvotes: 0

Views: 1334

Answers (1)

Pari Baker
Pari Baker

Reputation: 716

For anyone who might find this useful:

tell application "Microsoft Outlook"
   set theAccount to the full name of the first exchange account
   --adapted from above comment account says it is an integer
   get the full name of every exchange account
end tell

Upvotes: 1

Related Questions