Skip to content

Instantly share code, notes, and snippets.

@JunielKatarn
Created February 14, 2017 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JunielKatarn/50ba58def8d3e0b24fb623828cf408ee to your computer and use it in GitHub Desktop.
Save JunielKatarn/50ba58def8d3e0b24fb623828cf408ee to your computer and use it in GitHub Desktop.
Param (
[String]
$Path = (ls $env:USERPROFILE\AppData\Local\Jammit | ? { $_.Attributes -eq 'Directory' })[0].FullName
)
foreach ($dir in (ls $Path))
{
if (! (Test-Path $Path\$dir\info.plist)) {
continue
}
[xml]$xml = Get-Content $Path\$dir\info.plist
$title = ($xml.SelectNodes('plist/dict/string') | ? { $_.PreviousSibling.InnerText -eq 'title' }).InnerText
$instrument = $xml.SelectSingleNode('plist/dict/dict/key').InnerText
echo "$dir`n$title`n$instrument`n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment