Skip to content

Instantly share code, notes, and snippets.

@trey
Last active December 13, 2015 21:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trey/4979361 to your computer and use it in GitHub Desktop.
Save trey/4979361 to your computer and use it in GitHub Desktop.
Alfred script to append to your Sparkfile

Alfred script to append to your Sparkfile

Sparkfiles are great.

  1. Create a new Shell Script Extension.
  2. Give it the Keyword "spark".
  3. Click the "Advanced" button above the "Command" textarea and deselect "Spaces" under "Escaping".
  4. Close the Advanced dialog and paste this script into the "Command" textarea.
echo -e "\n---\n\n# `date '+%A, %B %e, %Y at %-I:%M% %p'`\n\n{query}\n" >> /Users/`whoami`/Dropbox/Notational\ Data/Sparkfile.txt

This will create a new entry in your Sparkfile in the format:

---

# Monday, February 18, 2013 at 1:08 PM

[content]

Thanks to @postpostmodern for the explanation of how to do this.

@trey
Copy link
Author

trey commented Feb 18, 2013

This is a Solutions Log post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment