toledorodney

Applescript: Change status in Lync

Aug 16th, 2015
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --go away
  2. tell application "Microsoft Lync"
  3.     activate
  4. end tell
  5.  
  6. tell application "System Events"
  7.     tell process "Microsoft Lync"
  8.         tell menu bar 1
  9.             tell menu bar item "Status"
  10.                 tell menu "Status"
  11.                     click menu item "Be Right Back"
  12.                 end tell
  13.             end tell
  14.         end tell
  15.     end tell
  16. end tell
  17.  
  18. --go available
  19. tell application "Microsoft Lync"
  20.     activate
  21. end tell
  22.  
  23. tell application "System Events"
  24.     tell process "Microsoft Lync"
  25.         tell menu bar 1
  26.             tell menu bar item "Status"
  27.                 tell menu "Status"
  28.                     click menu item "Available"
  29.                 end tell
  30.             end tell
  31.         end tell
  32.     end tell
  33. end tell
Advertisement