Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talkingmoose/df254fd5f2aeeffadf25aeb6e8f27eea to your computer and use it in GitHub Desktop.
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.
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