Skip to content

Instantly share code, notes, and snippets.

@MikeSel
Last active December 20, 2015 13:28
Show Gist options
  • Save MikeSel/6138617 to your computer and use it in GitHub Desktop.
Save MikeSel/6138617 to your computer and use it in GitHub Desktop.
Set Microsoft Lync status using AppleScript
--
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
set value of text field 1 of window "Microsoft Lync" to "Custom Status"
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment