tell application "Microsoft Lync" activate end tell tell application "System Events" tell process "Microsoft Lync" tell menu bar 1 tell menu bar item "Status" tell menu "Status" click menu item "Be Right Back" end tell end tell end tell end tell end tell --go available tell application "Microsoft Lync" activate end tell tell application "System Events" tell process "Microsoft Lync" tell menu bar 1 tell menu bar item "Status" tell menu "Status" click menu item "Available" end tell end tell end tell end tell end tell