mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 23:43:25 +01:00
Updated open-dashboards.ps1
This commit is contained in:
parent
1a7ef52e65
commit
a786175c4f
@ -1,13 +1,13 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Open web dashboards
|
Open 20 web dashboards
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script launches the Web browser with 20 tabs of popular dashboard websites.
|
This PowerShell script launches the Web browser with 20 tabs of popular dashboard websites.
|
||||||
.PARAMETER timeInterval
|
.PARAMETER timeInterval
|
||||||
Specifies the time interval between each tab (110ms per default)
|
Specifies the time interval between each tab (110ms per default)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./open-dashboards.ps1
|
PS> ./open-dashboards.ps1
|
||||||
✅ Launching Web browser with 20 tabs showing Toggl Track•Google Calendar•Google Mail, ...
|
✅ Launching Web browser with 20 tabs: Toggl Track•Google Calendar•Google Mail, ...
|
||||||
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
|
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
|
||||||
...
|
...
|
||||||
.LINK
|
.LINK
|
||||||
@ -16,15 +16,14 @@
|
|||||||
Author: Markus Fleschutz | License: CC0
|
Author: Markus Fleschutz | License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([int]$timeInterval = 110) # milliseconds
|
param([int]$timeInterval = 120) # milliseconds
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Progress "Reading Data/popular-dashboards.csv..."
|
Write-Progress "Reading Data/popular-dashboards.csv..."
|
||||||
$table = Import-CSV "$PSScriptRoot/../data/popular-dashboards.csv"
|
$table = Import-CSV "$PSScriptRoot/../data/popular-dashboards.csv"
|
||||||
Write-Progress -completed "Done."
|
Write-Progress -completed "Done."
|
||||||
|
|
||||||
Write-Host "✅ Launching Web browser with 20 tabs showing " -noNewline
|
Write-Host "✅ Launching Web browser with 20 tabs: " -noNewline
|
||||||
$numRows = $table.Length
|
|
||||||
foreach($row in $table) {
|
foreach($row in $table) {
|
||||||
Write-Host "$($row.NAME)•" -noNewline
|
Write-Host "$($row.NAME)•" -noNewline
|
||||||
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
|
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
|
||||||
|
Loading…
Reference in New Issue
Block a user