Example of how to include multiple levels of menu items in v1.8 and later.
#!/bin/bash
# <xbar.title>Submenus</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>iosdeveloper</xbar.author>
# <xbar.author.github>iosdeveloper</xbar.author.github>
# <xbar.desc>Example of how to include multiple levels of menu items in v1.8 and later.</xbar.desc>
# <xbar.image>http://i.imgur.com/9zJJHns.png</xbar.image>
echo "Submenu Tutorial"
echo "---"
echo "Places"
echo "--London"
echo "--Paris"
echo "--Tokyo"
echo "Fruit"
echo "--Apple"
echo "--Orange"
echo "--Melon"
echo "----Watermelon"
echo "----Honeydew"