Skip to content

Instantly share code, notes, and snippets.

@Jeff2Ma
Created August 11, 2016 12:01
Show Gist options
  • Save Jeff2Ma/791df44e9f8c7cdc7f526a14c1a8f0dc to your computer and use it in GitHub Desktop.
Save Jeff2Ma/791df44e9f8c7cdc7f526a14c1a8f0dc to your computer and use it in GitHub Desktop.
Alfred Script Filter JSON format
#
# Alfred Script Filter JSON format
#
# This example demonstrates all fields available for populating results.
#
# For an in-depth explanation, use the (?) help button to the bottom left.
#
cat << EOB
{"items": [
{
"uid": "desktop",
"type": "file",
"title": "Desktop",
"subtitle": "~/Desktop",
"arg": "~/Desktop",
"autocomplete": "Desktop",
"icon": {
"type": "fileicon",
"path": "~/Desktop"
}
},
{
"valid": false,
"uid": "flickr",
"title": "Flickr",
"icon": {
"path": "flickr.png"
}
},
{
"uid": "image",
"type": "file",
"title": "My holiday photo",
"subtitle": "~/Pictures/My holiday photo.jpg",
"autocomplete": "My holiday photo",
"icon": {
"type": "filetype",
"path": "public.jpeg"
}
},
{
"valid": false,
"uid": "alfredapp",
"title": "Alfred Website",
"subtitle": "https://www.alfredapp.com/",
"arg": "alfredapp.com",
"autocomplete": "Alfred Website",
"quicklookurl": "https://www.alfredapp.com/",
"mods": {
"alt": {
"valid": true,
"arg": "alfredapp.com/powerpack",
"subtitle": "https://www.alfredapp.com/powerpack/"
},
"cmd": {
"valid": true,
"arg": "alfredapp.com/powerpack/buy/",
"subtitle": "https://www.alfredapp.com/powerpack/buy/"
},
},
"text": {
"copy": "https://www.alfredapp.com/ (text here to copy)",
"largetype": "https://www.alfredapp.com/ (text here for large type)"
}
}
]}
EOB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment