Skip to content

AppleScript

The AppleScript dictionary lives at assets/dictate.sdef. It becomes active when dictate ships as a packaged .app with NSScriptingDefinitionFile in Info.plist.

Start recording

tell application "dictate"
    start recording
end tell

Stop recording

tell application "dictate"
    stop recording
end tell

Toggle recording

tell application "dictate"
    toggle recording
end tell

Open history

tell application "dictate"
    open history
end tell

Development fallback

Before the packaged app is registered, use shell commands from AppleScript:

do shell script "cd ~/dictate && python3 -m dictate 'dictate://toggle'"