Advertisement
Guest User

Untitled

a guest
May 29th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. --
  2. -- Microsoft Lync Status
  3. -- - Returns current Microsoft Lync status, if running
  4. --
  5. -- @author Jwalanta Shrestha <jwalanta@gmail.com>
  6. --
  7. if application "Microsoft Lync" is running then
  8. tell application "System Events"
  9. tell process "Microsoft Lync"
  10. # loop through all possible windows
  11. repeat with x from 1 to 100
  12. try
  13. set status to title of menu button 1 of window x
  14. return status
  15. on error errMsg
  16. # pass
  17. end try
  18. end repeat
  19. end tell
  20. end tell
  21. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement