Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rabb

macrumors newbie
Original poster
May 26, 2015
3
0
Hi,

In Outlook 2011, I would like to add a new member/contact in a certain group by using Applescript.

The code below works in entourage but not in Outlook 2011:


Code:
make new contact at group "MyGroup" with properties {«class emad»:{«class radd»:"the Email Address", name:"the Name"}}

Any idea, how can I add a new member/contact in a certain group using Applescript?

thx in adv.
 
Last edited:

Rabb

macrumors newbie
Original poster
May 26, 2015
3
0
Dear 0d085d,

thank you for your reply.

But the code does not add a new contact to a certain group!


I would like to add a new entry in a certain group by using Applescript.

The contacts/Members of a group has only the properties name and address.

The code below works in entourage but not in Outlook 2011:
Code:
make new contact at group "MyGroup" with properties {«class emad»:{«class radd»:"the Email Address", name:"the Name"}}


Any idea, how can I add a new member/contact in a certain group using Applescript?

thx in adv.
 

0d085d

macrumors regular
Apr 23, 2015
154
12
Any idea, how can I add a new member/contact in a certain group using Applescript?

How's this?

Code:
tell application "Microsoft Outlook"
	set theGroup to group "MyGroup"
	set newAddress to {type:public group address, address:"test2@test.com", name:"Test2"}
	set (members of theGroup) to (members of theGroup) & {newAddress}
end tell
 

Rabb

macrumors newbie
Original poster
May 26, 2015
3
0
Dear 0d085d,

thank you for your solution.

Your code works very well!

This thread is resolved.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.