Skip to content

Commit

Permalink
tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Jul 21, 2024
1 parent ca99277 commit 63cf046
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Plugins/Export-PageInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ Begin
{
$null = [Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")

$script:xml = [Xml.Linq.XElement]::Load($filePath)
Write-Host "Loaded $filepath"
Write-Host "Exporting page info to $CsvPath ..."
$script:xml = [Xml.Linq.XElement]::Load($filePath)
Write-Host "Loaded $filepath"
Write-Host "Exporting page info to $CsvPath ..."

# force Excel to use comma as CSV delimeter, opening in columnar mode
# this will not be part of the spreadsheet; it is discarded after the file is open
'SEP=,' | Out-File -FilePath $CsvPath

'Notebook,Section,Page,Created,Modified' | Out-File -FilePath $CsvPath -Append

$script:ns = $xml.GetNamespaceOfPrefix('one')
$script:ns = $xml.GetNamespaceOfPrefix('one')

if ($xml.Name.LocalName -eq 'Section')
{
Expand Down Expand Up @@ -127,7 +127,7 @@ Process
$CsvPath = Join-Path [Environment]::GetFolderPath('MyDocuments') 'OneNote_PageInfo.csv'
}

Export $filepath
Export $filepath

Write-Host 'Done'
Write-Host 'Done'
}

0 comments on commit 63cf046

Please sign in to comment.