Skip to content

Instantly share code, notes, and snippets.

@nmhnmh
Created October 16, 2017 06:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nmhnmh/ec04e3949baf83f32843f30327fcd6ee to your computer and use it in GitHub Desktop.
Save nmhnmh/ec04e3949baf83f32843f30327fcd6ee 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