Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --go away
- 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
Advertisement