getAllApps + TreeToArray