diff options
Diffstat (limited to 'docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html')
-rw-r--r-- | docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html b/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html index 2db536b..9b8973b 100644 --- a/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html +++ b/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html @@ -104,7 +104,7 @@ <span class="k">def</span> <span class="nf">execute_command</span><span class="p">(</span><span class="n">command_text</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span> - <span class="sd">"""Execute a Siri command."""</span> +<span class="w"> </span><span class="sd">"""Execute a Siri command."""</span> <span class="n">script</span> <span class="o">=</span> <span class="n">applescript</span><span class="o">.</span><span class="n">AppleScript</span><span class="p">(</span><span class="sa">f</span><span class="s2">"""</span> <span class="s2"> tell application "System Events" to tell the front menu bar of process "SystemUIServer"</span> @@ -141,8 +141,8 @@ <p>Usage:</p> <div class="codehilite"> -<pre><span></span><code>python3 main.py <span class="s2">"play some taylor swift"</span> -python3 main.py <span class="s2">"turn off the lights and play some music"</span> --openai +<pre><span></span><code>python3<span class="w"> </span>main.py<span class="w"> </span><span class="s2">"play some taylor swift"</span> +python3<span class="w"> </span>main.py<span class="w"> </span><span class="s2">"turn off the lights and play some music"</span><span class="w"> </span>--openai </code></pre> </div> @@ -179,7 +179,7 @@ python3 main.py <span class="s2">"turn off the lights and play some music&q <pre><span></span><code><span class="kn">import</span> <span class="nn">applescript</span> <span class="k">def</span> <span class="nf">execute_command</span><span class="p">(</span><span class="n">command_text</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span> - <span class="sd">"""Execute a Siri command."""</span> +<span class="w"> </span><span class="sd">"""Execute a Siri command."""</span> <span class="n">script</span> <span class="o">=</span> <span class="n">applescript</span><span class="o">.</span><span class="n">AppleScript</span><span class="p">(</span><span class="sa">f</span><span class="s2">"""</span> <span class="s2"> tell application "System Events" to tell the front menu bar of process "SystemUIServer"</span> |