Jump to content

bb13

Member
  • Content Count

    10
  • Joined

  • Last visited

  1. Sorry, I thought I had the latest version. Thanks for responding! Works perfectly.
  2. I'm getting a cloudfront error here: HTTPError: Response code 410 (Gone) this is my debug log: ALFRED WORKFLOW TODOIST ---------------------------------------- os: macOS High Sierra query: testing todoist workflow @ node.js: v12.13.0 alfred: unknown workflow: 5.6.1 Stack: HTTPError: Response code 410 (Gone) at EventEmitter.<anonymous> (/Users/(myusername)/Dropbox/Alfred/Backup/Alfred.alfredpreferences/workflows/user.workflow.87FF7687-33AD-4221-A6AE-1D8E12186039/alfred-workflow-todoist.js:40858:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) [06:13:32.046] Alfred Workflow Todoist[Script Filter] Queuing argument 'testing todoist workflow ' [06:13:32.346] Alfred Workflow Todoist[Script Filter] Script with argv '(null)' finished [06:13:32.361] Alfred Workflow Todoist[Script Filter] {"items":[{"arg":"{\"content\":\"testing todoist workflow\",\"priority\":1}","type":"default","valid":true,"autocomplete":"","title":"CREATE: testing todoist workflow","subtitle":"INBOX","icon":{"path":"icon.png"},"uid":"49ae813b0468b9ec575bf2d5754d5f2d"}]} [06:13:32.414] Alfred Workflow Todoist[Script Filter] Queuing argument 'testing todoist workflow' [06:13:32.711] Alfred Workflow Todoist[Script Filter] Script with argv '(null)' finished [06:13:32.727] Alfred Workflow Todoist[Script Filter] {"items":[{"arg":"{\"content\":\"testing todoist workflow\",\"priority\":1}","type":"default","valid":true,"autocomplete":"","title":"CREATE: testing todoist workflow","subtitle":"INBOX","icon":{"path":"icon.png"},"uid":"49ae813b0468b9ec575bf2d5754d5f2d"}]} [06:13:37.282] Alfred Workflow Todoist[Script Filter] Processing complete [06:13:37.304] Alfred Workflow Todoist[Script Filter] Passing output '{"content":"testing todoist workflow","priority":1}' to Run Script [06:13:43.152] Alfred Workflow Todoist[Run Script] Processing complete [06:13:43.171] Alfred Workflow Todoist[Run Script] Passing output 'Error log [Arguments] { '0': HTTPError: Response code 410 (Gone) at EventEmitter.<anonymous> (/Users/(myusername)/Dropbox/Alfred/Backup/Alfred.alfredpreferences/workflows/user.workflow.87FF7687-33AD-4221-A6AE-1D8E12186039/alfred-workflow-todoist.js:40858:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) { name: 'HTTPError', host: undefined, hostname: 'beta.todoist.com', method: 'GET', path: '/API/v8/projects', socketPath: undefined, protocol: 'https:', url: 'https://beta.todoist.com/API/v8/projects', statusCode: 410, statusMessage: 'Gone', headers: { 'content-type': 'text/plain; charset=utf-8', 'content-length': '109', connection: 'close', server: 'awselb/2.0', date: 'Thu, 24 Oct 2019 13:13:37 GMT', 'x-cache': 'Error from cloudfront', via: '1.1 bb248e7fabd9781d3ed921f068507334.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'SFO5-C1', 'x-amz-cf-id': '-lRylZDyiLtWxYeWxIyW0UIwRP8v0gPUtrAoc6lfasRBHJ-Mk7CllQ==' } } } HTTPError: Response code 410 (Gone) ALFRED WORKFLOW TODOIST ---------------------------------------- os: macOS High Sierra query: {"content":"testing todoist workflow","priority":1} node.js: v12.13.0 alfred: unknown workflow: 5.6.1 Stack: HTTPError: Response code 410 (Gone) at EventEmitter.<anonymous> (/Users/(myusername)/Dropbox/Alfred/Backup/Alfred.alfredpreferences/workflows/user.workflow.87FF7687-33AD-4221-A6AE-1D8E12186039/alfred-workflow-todoist.js:40858:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) ' to Debug [06:13:43.177] Alfred Workflow Todoist[Debug] 'Error log [Arguments] { '0': HTTPError: Response code 410 (Gone) at EventEmitter.<anonymous> (/Users/(myusername)/Dropbox/Alfred/Backup/Alfred.alfredpreferences/workflows/user.workflow.87FF7687-33AD-4221-A6AE-1D8E12186039/alfred-workflow-todoist.js:40858:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) { name: 'HTTPError', host: undefined, hostname: 'beta.todoist.com', method: 'GET', path: '/API/v8/projects', socketPath: undefined, protocol: 'https:', url: 'https://beta.todoist.com/API/v8/projects', statusCode: 410, statusMessage: 'Gone', headers: { 'content-type': 'text/plain; charset=utf-8', 'content-length': '109', connection: 'close', server: 'awselb/2.0', date: 'Thu, 24 Oct 2019 13:13:37 GMT', 'x-cache': 'Error from cloudfront', via: '1.1 bb248e7fabd9781d3ed921f068507334.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'SFO5-C1', 'x-amz-cf-id': '-lRylZDyiLtWxYeWxIyW0UIwRP8v0gPUtrAoc6lfasRBHJ-Mk7CllQ==' } } } HTTPError: Response code 410 (Gone) ALFRED WORKFLOW TODOIST ---------------------------------------- os: macOS High Sierra query: {"content":"testing todoist workflow","priority":1} node.js: v12.13.0 alfred: unknown workflow: 5.6.1 Stack: HTTPError: Response code 410 (Gone) at EventEmitter.<anonymous> (/Users/(myusername)/Dropbox/Alfred/Backup/Alfred.alfredpreferences/workflows/user.workflow.87FF7687-33AD-4221-A6AE-1D8E12186039/alfred-workflow-todoist.js:40858:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) ', {}
  3. 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')"
  4. 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!
  5. Thanks for responding deanishe, I didn't run the debugger! Doh. The location of WGET was the main issue. Thank you, that solved it!
  6. 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
  7. Thank you, Englebert! Great script. Works well with non-google app gmail accounts as well. Exactly what I was looking for!
  8. dfay and raguay, thank you both for responding. I'm looking at both solutions now.
  9. 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.
  10. 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...