Hi there,
I have a script, where the array for the JSON, which will be passed to Alfred again, looks like so:
result.append(
{"title": title,
"subtitle": arg,
"arg": arg,
"icon": {
"type": "filetype",
"???": "???"
} }
)
What do I have to fill in for the ???, so that files are shown with their correct icons? PDFs with a pdf icon, jpgs with jpg icon and so on...
Do I have to assign each individual filetype to an icon or is there a more generic way to achieve this?