Add open-google-contacts.ps1 and open-google-news.ps1

This commit is contained in:
Markus Fleschutz
2021-10-25 11:18:43 +02:00
parent dbe42671ec
commit 312b38a04a
6 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Google Contacts
.DESCRIPTION
This script starts the Web browser and opens Google Contacts.
.EXAMPLE
PS> ./open-google-contacts
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
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
}

20
Scripts/open-google-news.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Google News
.DESCRIPTION
This script starts the Web browser and opens Google News.
.EXAMPLE
PS> ./open-google-news
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
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
}