Add open-google-play.ps1 and open-google-mail.ps1

This commit is contained in:
Markus Fleschutz
2021-10-28 08:41:53 +02:00
parent 4c8f0c90d0
commit 1d335fb513
14 changed files with 102 additions and 46 deletions

View File

@ -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

View File

@ -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

15
Scripts/open-google-mail.ps1 Executable file
View File

@ -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

View File

@ -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

View File

@ -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

15
Scripts/open-google-play.ps1 Executable file
View File

@ -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

View File

@ -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

View File

@ -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