Alfred Quick Script Demo

Shell

Google Search Demo

  • new script filter
  • edit shell script likes below:
cat << EOB
{"items": [
	{
		"autocomplete": "google search",
		"title": "google search",
		"valid": true,
		"subtitle": "google search",
		"arg": "https://www.google.com.hk/search?q=$1"
	}
]}
EOB
  • check argument required
  • uncheck Alfred filters results
  • with input as argv, and add $1 to your arg

image

  • add {query} to URL input

image

NodeJS

~/bin/node-v18.9.1-darwin-arm64/bin/node index.mjs "{query}"

Request with local Chrome cookies by chrome-cookies-secure

fzf search

  • https://github.com/yohasebe/fzf-alfred-workflow/tree/main

References