Created
September 18, 2012 14:12
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.