Skip to content

Instantly share code, notes, and snippets.

@mofelee
Forked from nmhnmh/alfred.json
Created June 13, 2022 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mofelee/4011970ff127101327ee6c2bb85fa4b4 to your computer and use it in GitHub Desktop.
Save mofelee/4011970ff127101327ee6c2bb85fa4b4 to your computer and use it in GitHub Desktop.
Template for Alfred App Script Filter JSON output
{
"variables": {
"fruit": "banana",
"vegetable": "carrot"
},
"rerun" : 1,
"items": [
{
"uid": "desktop",
"type": "file",
"title": "Desktop",
"subtitle": "~/Desktop",
"arg": "~/Desktop",
"autocomplete": "Desktop",
"valid": true,
"match": "a match string",
"mods": {
"alt": {
"valid": true,
"arg": "alfredapp.com/powerpack",
"subtitle": "https://www.alfredapp.com/powerpack/",
"variables": {
"item_var": "hello"
}
},
"cmd": {
"valid": true,
"arg": "alfredapp.com/powerpack/buy/",
"subtitle": "https://www.alfredapp.com/powerpack/buy/",
"variables": {
"item_var": "alternate value"
}
},
},
"icon": {
"type": "fileicon",
"path": "~/Desktop"
},
"text": {
"copy": "https://www.alfredapp.com/ (text here to copy)",
"largetype": "https://www.alfredapp.com/ (text here for large type)"
},
"quicklookurl": "https://www.alfredapp.com/",
"variables": {
"name": "values"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment