diff --git a/Data/scripts.csv b/Data/scripts.csv index 92ac38d4..1ed8e114 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -175,7 +175,9 @@ open-github.ps1, Opens GitHub's website open-google-contacts.ps1, Opens Google Contacts open-google-earth.ps1, Opens Google Earth open-google-maps.ps1, Opens Google Maps +open-google-mail.ps1, Opens Google Mail open-google-news.ps1, Opens Google News +open-google-play.ps1, Opens Google Play open-google-search.ps1, Opens Google Search open-google-translate.ps1, Opens Google Translate open-home-folder.ps1, Opens the user's home folder diff --git a/Docs/open-google-contacts.md b/Docs/open-google-contacts.md index 5cae5e60..c4a95a41 100644 --- a/Docs/open-google-contacts.md +++ b/Docs/open-google-contacts.md @@ -1,6 +1,6 @@ ## open-google-contacts.ps1 - Opens Google Contacts -This script launches the Web browser with Google Contacts website. +This script launches the Web browser with the Google Contacts website. ## Parameters ```powershell diff --git a/Docs/open-google-earth.md b/Docs/open-google-earth.md index 79e824e6..30088104 100644 --- a/Docs/open-google-earth.md +++ b/Docs/open-google-earth.md @@ -1,6 +1,6 @@ ## open-google-earth.ps1 - Opens Google Earth -This script launches the Web browser with Google Earth's website. +This script launches the Web browser with the Google Earth website. ## Parameters ```powershell diff --git a/Docs/open-google-mail.md b/Docs/open-google-mail.md new file mode 100644 index 00000000..ba18b28d --- /dev/null +++ b/Docs/open-google-mail.md @@ -0,0 +1,26 @@ +## open-google-mail.ps1 - Opens Google Mail + +This script launches the Web browser with the Google Mail website. + +## Parameters +```powershell +open-google-mail.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./open-google-mail + +``` + +## Notes +Author: Markus Fleschutz · License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +*Generated by convert-ps2md.ps1 using the comment-based help of open-google-mail.ps1* diff --git a/Docs/open-google-play.md b/Docs/open-google-play.md new file mode 100644 index 00000000..ec93b21f --- /dev/null +++ b/Docs/open-google-play.md @@ -0,0 +1,26 @@ +## open-google-play.ps1 - Opens Google Play + +This script launches the Web browser with the Google Play website. + +## Parameters +```powershell +open-google-play.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./open-google-play + +``` + +## Notes +Author: Markus Fleschutz · License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +*Generated by convert-ps2md.ps1 using the comment-based help of open-google-play.ps1* diff --git a/README.md b/README.md index d6225d58..40c89081 100644 --- a/README.md +++ b/README.md @@ -129,8 +129,10 @@ Mega Collection of PowerShell Scripts | [open-github.ps1](Scripts/open-github.ps1) | Opens GitHub's website | [Help](Docs/open-github.md) | | [open-google-contacts.ps1](Scripts/open-google-contacts.ps1) | Opens Google Contacts | [Help](Docs/open-google-contacts.md) | | [open-google-earth.ps1](Scripts/open-google-earth.ps1) | Opens Google Earth | [Help](Docs/open-google-earth.md) | +| [open-google-mail.ps1](Scripts/open-google-mail.ps1) | Opens Google Mail | [Help](Docs/open-google-mail.md) | | [open-google-maps.ps1](Scripts/open-google-maps.ps1) | Opens Google Maps | [Help](Docs/open-google-maps.md) | | [open-google-news.ps1](Scripts/open-google-news.ps1) | Opens Google News | [Help](Docs/open-google-news.md) | +| [open-google-play.ps1](Scripts/open-google-play.ps1) | Opens Google Play | [Help](Docs/open-google-play.md) | | [open-google-search.ps1](Scripts/open-google-search.ps1) | Opens Google Search | [Help](Docs/open-google-search.md) | | [open-google-translate.ps1](Scripts/open-google-translate.ps1) | Opens Google Translate | [Help](Docs/open-google-translate.md) | | [open-home-folder.ps1](Scripts/open-home-folder.ps1) | Opens the user's home folder | [Help](Docs/open-home-folder.md) | diff --git a/Scripts/open-google-contacts.ps1 b/Scripts/open-google-contacts.ps1 index 6dac310d..1212fb21 100755 --- a/Scripts/open-google-contacts.ps1 +++ b/Scripts/open-google-contacts.ps1 @@ -2,7 +2,7 @@ .SYNOPSIS Opens Google Contacts .DESCRIPTION - This script launches the Web browser with Google Contacts website. + This script launches the Web browser with the Google Contacts website. .EXAMPLE PS> ./open-google-contacts .NOTES @@ -11,10 +11,5 @@ https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/open-browser.ps1" "https://contacts.google.com" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" - exit 1 -} +& "$PSScriptRoot/open-browser.ps1" "https://contacts.google.com" +exit 0 # success diff --git a/Scripts/open-google-earth.ps1 b/Scripts/open-google-earth.ps1 index bbe0551f..6abf8bca 100755 --- a/Scripts/open-google-earth.ps1 +++ b/Scripts/open-google-earth.ps1 @@ -2,7 +2,7 @@ .SYNOPSIS Opens Google Earth .DESCRIPTION - This script launches the Web browser with Google Earth's website. + This script launches the Web browser with the Google Earth website. .EXAMPLE PS> ./open-google-earth .NOTES @@ -11,10 +11,5 @@ https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/open-browser.ps1" "https://earth.google.com/web/" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" - exit 1 -} +& "$PSScriptRoot/open-browser.ps1" "https://earth.google.com/web/" +exit 0 # success diff --git a/Scripts/open-google-mail.ps1 b/Scripts/open-google-mail.ps1 new file mode 100755 index 00000000..490b50e4 --- /dev/null +++ b/Scripts/open-google-mail.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Opens Google Mail +.DESCRIPTION + This script launches the Web browser with the Google Mail website. +.EXAMPLE + PS> ./open-google-mail +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/open-browser.ps1" "https://mail.google.com" +exit 0 # success diff --git a/Scripts/open-google-maps.ps1 b/Scripts/open-google-maps.ps1 index 096796de..60224f1f 100755 --- a/Scripts/open-google-maps.ps1 +++ b/Scripts/open-google-maps.ps1 @@ -11,10 +11,5 @@ https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/open-browser.ps1" "https://google.de/maps" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" - exit 1 -} +& "$PSScriptRoot/open-browser.ps1" "https://google.de/maps" +exit 0 # success diff --git a/Scripts/open-google-news.ps1 b/Scripts/open-google-news.ps1 index dc87ef14..0a1f177f 100755 --- a/Scripts/open-google-news.ps1 +++ b/Scripts/open-google-news.ps1 @@ -11,10 +11,5 @@ https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/open-browser.ps1" "https://news.google.com" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" - exit 1 -} +& "$PSScriptRoot/open-browser.ps1" "https://news.google.com" +exit 0 # success diff --git a/Scripts/open-google-play.ps1 b/Scripts/open-google-play.ps1 new file mode 100755 index 00000000..70aa237f --- /dev/null +++ b/Scripts/open-google-play.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Opens Google Play +.DESCRIPTION + This script launches the Web browser with the Google Play website. +.EXAMPLE + PS> ./open-google-play +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/open-browser.ps1" "https://play.google.com/store" +exit 0 # success diff --git a/Scripts/open-google-search.ps1 b/Scripts/open-google-search.ps1 index 1daf3670..cb0135d7 100755 --- a/Scripts/open-google-search.ps1 +++ b/Scripts/open-google-search.ps1 @@ -11,10 +11,5 @@ https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/open-browser.ps1" "https://google.com" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" - exit 1 -} +& "$PSScriptRoot/open-browser.ps1" "https://google.com" +exit 0 # success diff --git a/Scripts/open-google-translate.ps1 b/Scripts/open-google-translate.ps1 index 9c54ec2a..c97f435b 100755 --- a/Scripts/open-google-translate.ps1 +++ b/Scripts/open-google-translate.ps1 @@ -11,10 +11,5 @@ https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/open-browser.ps1" "https://translate.google.com" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" - exit 1 -} +& "$PSScriptRoot/open-browser.ps1" "https://translate.google.com" +exit 0 # success