Created
February 14, 2017 05:04
-
-
Save JunielKatarn/50ba58def8d3e0b24fb623828cf408ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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