let createChoices = async () => {
let apps = await fileSearch(“”, {
Featured Content Ads
add advertising hereonlyin: “/”,
kind: “application”,
})
let prefs = await fileSearch(“”, {
Featured Content Ads
add advertising hereonlyin: “/”,
kind: “preferences”,
})
let group = path => apps =>
Featured Content Ads
add advertising hereapps
.filter(app => app.match(path))
.sort((a, b) => {
let aName = a.replace(/.*//, “”)
let bName = b.replace(/.*//, “”)
return aName > bName ? 1 : aName < bName ? –1 : 0
})
return [
…group(/^/Applications/(?!Utilities)/)(apps),
…group(/.prefPane$/)(prefs),
…group(/^/Applications/Utilities/)(apps),
…group(/System/)(apps),
…group(/Users/)(apps),
].map(value => {
return {
name: value.split(“/”).pop().replace(“.app”, “”),
value,
description: value,
}
})
}
let appsDb = await db(“apps”, async () => ({
Join the pack! Join 8000+ others registered users, and get chat, make groups, post updates and make friends around the world!
www.knowasiak.com/register/