Execute Microsoft Teams shortcuts from Node.js via applescript
npm i msteams-node-applescript-shortcuts@next
Usage
import { MeetingsAndCalls } from 'msteams-node-applescript-shortcuts';
(async () => {
await MeetingsAndCalls.mute(true);
})();
Commands
All commands accept the following arguments:
- Reactivate (boolean - default: false): Reactivates the original application. If this is true, it will open Microsoft Teams, run the shortcut, and reactivates the original appliction again.
Accept
Accept a call coming in.
await MeetingsAndCalls.accept(true);
Decline
Decline a call coming in.
await MeetingsAndCalls.decline(true);
Mute
Toggles your microphone (mute/unmute) in a call/meeting
await MeetingsAndCalls.mute(true);
Camera
Toggles your camera in a call/meeting
await MeetingsAndCalls.camera(true);