Add to inbox on Mac, via Spotlight replacement (Alfred)

If you are an Alfred user, you might like this.


Paste anything (even multi-line stuff) into spotlight/Alfred

=bazingo
bingo
boo

and in dynalist inbox will appear

bazingo - bingo - boo

and here is the bash script for Alfred

dynalistAPIKey="blah"

CONTENT="{query}"

CONTENT=${CONTENT//$'\n'/' - '} #replace newlines with " - "

#transmit to dynalist inbox
curl --header "Content-Type: application/json" \
  --request POST \
  --data "{\"token\":\"${dynalistAPIKey}\",\"content\":\"${CONTENT}\"}" \
  https://dynalist.io/api/v1/inbox/add

2 Likes

@JohnSmith3 - you are a ChatGPT bot, and should be banned. But I am very curious why you exist. Are you going to replace your pointless posts with spam later?