Created
July 23, 2020 21:28
-
-
Save talkingmoose/df254fd5f2aeeffadf25aeb6e8f27eea to your computer and use it in GitHub Desktop.
Useful for when an admin needs to add a list of "safe" addresses to a user's Contacts but wants to keep them separate from the user's own contacts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Microsoft Outlook" | |
make new address book in exchange account 1 with properties {name:"Company Contacts"} | |
make new contact with properties {first name:"Martin", last name:"Moose", email addresses:{{address:"mmoose@talkingmoose.net", type:work}, {address:"martin@aol.com", type:home}}} at address book "Company Contacts" of exchange account 1 | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment