Skip to content

Instantly share code, notes, and snippets.

@woodybrood
Created September 18, 2012 14:12
Show Gist options
  • Save woodybrood/3743359 to your computer and use it in GitHub Desktop.
Save woodybrood/3743359 to your computer and use it in GitHub Desktop.
Alfred Script Extension for logging from Alfred to a file in a format compatible with the FacebookIFTTT plugin for Slogger
cd ~/Dropbox/daily
file="work_log.txt";
if [ ! -e $file ]
then
touch $file;
fi
time=`echo $(date +"%B %e, %Y at %I:%M%p")`
echo "Post: {query}"$'\n'Date: $time $'\n\n- - - - - \n' >> $file
@woodybrood
Copy link
Author

I had been logging files in my own format, but rather than create a bunch of different formats for things, I thought I would try to reuse the one created as a part of the IFTTT rule (https://ifttt.com/recipes/56242) used for the FacebookIFTTTLogger plugin for Slogger.

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