Jump to content


  • Content Count

  • Joined

  • Last visited

  1. deanishe and vitor, I can see why you two are community heroes! Thank you both. I'm smiling over here, finally got this workflow working the way I wanted it to. vitor, that worked *perfectly* and I just added the URL line from your page. I really appreciate the help from both of you! Thanks again. title="$(osascript -e 'tell application "Google Chrome" to return title of active tab of front window')" url="$(osascript -e 'tell application "Google Chrome" to return URL of active tab of front window')"
  2. Thank you, vitor, I agree and will give your solution a try! My only issue is that it has to write to a text log file with date, tags etc. I will do some research and try to do the same thing with Applescript. Thanks again for the suggestion and link!
  3. Thanks for responding deanishe, I didn't run the debugger! Doh. The location of WGET was the main issue. Thank you, that solved it!
  4. Hi, I am trying to run a shell script from within alfred that will copy the title and URL of current Chrome page and insert it into a text file/log. I can get this script to work in terminal but not from Alfred. Any help is appreciated. #!/bin/bash #======================================================================================== # # Description: Extracts browser Window Title and saves in log file # # Usage : ./gettitle.sh "URL" # # NOTE : Enclose URL in double quotes # #======================================================================================== # Log file : Change as needed by providing full path of the log file log="/Users/NOTMYREALNAME/Dropbox/text/dailylog19.taskpaper" # Extract day from date (Example: Sunday) day=$(date +%A) # Date iin MM/DD/YYYY format datemdy=$(date +%m/%d/%Y) # Prepare date tag today=$(echo "$day $datemdy:") #Date tag datetag=$(date +@\(%Y-%m-%d\)) url="$1" #---------------------------------------------------------------------------------------- # Extract the tab title (there maybe more title tags so just grabbing the first one) title=$(wget -q -O - "$url" | grep -io "<title.*>*</title>" | sed -e 's/<[^>]*>//g' | head -n1) # Update log file when title is found (Use date tag once per day) if [ -n "$title" ] then grep -q "$today" "$log" if [ "$?" -ne 0 ] then echo "$today" >> "$log" echo "" >> "$log" fi echo -e "\t$title" >> "$log" echo -e "\t$url $datetag" >> "$log" echo "" >> "$log" fi exit 0
  5. Thank you, Englebert! Great script. Works well with non-google app gmail accounts as well. Exactly what I was looking for!
  6. dfay and raguay, thank you both for responding. I'm looking at both solutions now.
  7. I apologize if this has been covered in the forum but I'm looking for a workflow that appends text to a journal file located in my Dropbox/@text directory The text file name is Work Log: February 2015 and the format is as follows ##2015-02-18 10:42 AM: Lorem ipsum dolor sit amet, consectetur adipisicing elit 10:43 AM: sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Basically the workflow would look for the filename and, if not found, would create a new month and then look for the date (if date not present then it is created) and append a timestamped entry under today's date. My idea is to use FoldingText to fold the individual days but to have all work log activities in a monthly text file. I'm having trouble figuring out how to get it to log under the correct date instead of just logging to the page. Any help is greatly appreciated.
  8. I just downloaded this today and it works great! Thanks for all your work on this. Could someone please tell me if this is possible? I'd like to append information to an existing note with this Alfred script. The note is titled Daily Task Log: 2014-10-16 but the date changes the title every day. I'm attaching a screenshot of the formatting of the note but basically I'd just want a timestamp and a short description appended. Here's what a note looks like: http://d.pr/i/16gP9/13Z0wacv Is there a way of modifying one of these scripts to accomplish that?
  • Create New...