I have a plist file as below, I want to get all value of "showName" and "videoURLString", how can I read it by AppleScript or bash easily? especially when there a lot of "dict" in plist file.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
* <dict>
* * <key>showName</key>
* * <string>绝色武器</string>
* * <key>subIndex</key>
* * <string>0</string>
* * <key>typeID</key>
* * <string>1</string>
* * <key>vid</key>
* * <string>15669746</string>
* * <key>videoURLString</key>
* * <string>http://ip/file.txt</string>
* </dict>
</array>
</plist>