From dbb442c7ad4754c00c3bf86ab05e9c68642103ec Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 21 Nov 2021 12:21:34 +0100 Subject: [PATCH] Rename to open/close-thunderbird-app.ps1 --- Docs/VoiceControl.md | 4 ++-- ...lla-thunderbird.ps1 => close-thunderbird-app.ps1} | 6 +++--- Scripts/export-to-serenade.ps1 | 12 ++++++------ ...illa-thunderbird.ps1 => open-thunderbird-app.ps1} | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) rename Scripts/{close-mozilla-thunderbird.ps1 => close-thunderbird-app.ps1} (69%) rename Scripts/{open-mozilla-thunderbird.ps1 => open-thunderbird-app.ps1} (65%) diff --git a/Docs/VoiceControl.md b/Docs/VoiceControl.md index 19358c0f..90ea6994 100644 --- a/Docs/VoiceControl.md +++ b/Docs/VoiceControl.md @@ -6,7 +6,7 @@ Installation ------------ 1. Download and install *Serenade* from https://serenade.ai/. 2. Download and install the *PowerShell Scripts*, then set the search path to it. -3. Execute the PowerShell script: `./export-to-serenade.ps1 computer` - this creates a custom JavaScript file at `$HOME/.serenade/scripts/PowerShell.js` using the wake word 'computer'. Recommended wake words with a high detection rate are: "Alexa", "Computer", "Siri" and "Windows". +3. Execute: `./export-to-serenade.ps1 computer` in the *PowerShell Scripts* - this creates a custom JavaScript file at `$HOME/.serenade/scripts/PowerShell.js` using the wake word 'computer'. Recommended wake words with a high detection rate are: "Alexa", "Computer", "Siri" and "Windows". Usage @@ -28,7 +28,7 @@ More supported voice commands are: [wake word], open NAME app -------------------------- * this launches the given application. -* replace NAME by: "Calculator", "Netflix", or "Visual Studio". +* replace NAME by: "Calculator", "Netflix", "Thunderbird", or "Visual Studio". * when finished use: *[wake word], close NAME app* to stop the application. diff --git a/Scripts/close-mozilla-thunderbird.ps1 b/Scripts/close-thunderbird-app.ps1 similarity index 69% rename from Scripts/close-mozilla-thunderbird.ps1 rename to Scripts/close-thunderbird-app.ps1 index b88264d9..fedd95d3 100644 --- a/Scripts/close-mozilla-thunderbird.ps1 +++ b/Scripts/close-thunderbird-app.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Closes Mozilla Thunderbird + Closes the Thunderbird app .DESCRIPTION - This script closes the Mozilla Thunderbird email client gracefully. + This script closes the Mozilla Thunderbird email application gracefully. .EXAMPLE - PS> ./close-mozilla-thunderbird + PS> ./close-thunderbird-app .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/export-to-serenade.ps1 b/Scripts/export-to-serenade.ps1 index 2b831227..30a62395 100755 --- a/Scripts/export-to-serenade.ps1 +++ b/Scripts/export-to-serenade.ps1 @@ -4,17 +4,17 @@ .DESCRIPTION This script exports all PowerShell scripts to Serenade to execute them by voice. .PARAMETER WakeWord - Specifies the wakeword (none by default) + Specifies the wake word (none by default) .PARAMETER FilePattern Specifies the file pattern for the scripts ("$PSScriptRoot/*.ps1" by default) .PARAMETER Application Specifies the application to be used .PARAMETER TargetFile - Specifies the target file ("$HOME/.serenade/scripts/PowerShell.js" by default) + Specifies the target file ("$HOME\.serenade\scripts\PowerShell.js" by default) .EXAMPLE PS> ./export-to-serenade.ps1 Computer - ⏳ Exporting 264 PowerShell scripts to C:\Users\Markus/.serenade/scripts/PowerShell.js... - ✔️ exported 264 scripts with wakework "Computer" to Serenade in 22 sec + ⏳ Exporting 496 PowerShell scripts to C:\Users\Markus\.serenade\scripts\PowerShell.js... + ✔️ exported 496 scripts with wake word "Computer" to Serenade in 3 sec .NOTES Author: Markus Fleschutz · License: CC0 .LINK @@ -23,7 +23,7 @@ #requires -version 2 -param([string]$WakeWord = "", [string]$FilePattern = "$PSScriptRoot/*.ps1", [string]$Application = "terminal", [string]$TargetFile = "$HOME/.serenade/scripts/PowerShell.js") +param([string]$WakeWord = "", [string]$FilePattern = "$PSScriptRoot/*.ps1", [string]$Application = "terminal", [string]$TargetFile = "$HOME\.serenade\scripts\PowerShell.js") try { $StopWatch = [system.diagnostics.stopwatch]::startNew() @@ -39,7 +39,7 @@ try { } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ exported $($Scripts.Count) PowerShell scripts with wakeword `"$WakeWord`" to Serenade in $Elapsed sec" + "✔️ exported $($Scripts.Count) PowerShell scripts with wake word `"$WakeWord`" to Serenade in $Elapsed sec" exit 0 # success } catch { write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/open-mozilla-thunderbird.ps1 b/Scripts/open-thunderbird-app.ps1 similarity index 65% rename from Scripts/open-mozilla-thunderbird.ps1 rename to Scripts/open-thunderbird-app.ps1 index c80b7329..92f15612 100644 --- a/Scripts/open-mozilla-thunderbird.ps1 +++ b/Scripts/open-thunderbird-app.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Launches Mozilla Thunderbird + Launches the Thunderbird app .DESCRIPTION - This script launches the Mozilla Thunderbird email client. + This script launches the Mozilla Thunderbird email application. .EXAMPLE - PS> ./open-mozilla-thunderbird + PS> ./open-thunderbird-app .NOTES Author: Markus Fleschutz · License: CC0 .LINK