Updated open-dashboards.ps1

This commit is contained in:
Markus Fleschutz
2025-07-08 06:56:00 +02:00
parent 8a4eb1b42b
commit 8025089b08

View File

@ -7,9 +7,8 @@
Specifies the time interval between each tab (110ms per default)
.EXAMPLE
PS> ./open-dashboards.ps1
Launching Web browser with 24 tabs: Toggl Track•Google Calendar•Google Mail, ...
Launching Web browser with 24 tabs: Toggl Track•Google Calendar•Google Mail, ...
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
...
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -21,9 +20,10 @@ param([int]$timeInterval = 120) # milliseconds
try {
Write-Progress "Reading Data/popular-dashboards.csv..."
$table = Import-CSV "$PSScriptRoot/../data/popular-dashboards.csv"
$numRows = $table.Count
Write-Progress -completed "Done."
Write-Host " Launching Web browser with $($table.Count) tabs: " -noNewline
Write-Host " Launching Web browser with $numRows tabs: " -noNewline
foreach($row in $table) {
Write-Host "$($row.NAME)" -noNewline
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"