Jump to content

bb13

Member
  • Posts

    17
  • Joined

  • Last visited

bb13's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. I've got the same problem on iCloud. I only use my Macbook, so I don't think sync is the issue. It works ~30% of the time. Alfred 5.1.4 Sonoma 14 Notes not showing example - Vimeo
  2. Thanks for replying @Stephen_C. I hadn't updated homebrew in a while, so installing CLT solved the xcrun issue. Now this is the error I'm getting: [13:19:43.133] Obsidian Idea Capture[Arg and Vars] Processing complete [13:19:43.135] Obsidian Idea Capture[Arg and Vars] Passing output '' to Run Script [13:19:43.177] ERROR: Obsidian Idea Capture[Run Script] Traceback (most recent call last): File "/Users/ballard/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/E216E5AB-E5E3-4738-BFFC-13E74E8BEEA6", line 31, in <module> append_to_daily_vault(vault, header, content) File "/Users/ballard/Documents/Alfred/Preferences/Alfred.alfredpreferences/workflows/user.workflow.5F68CEB5-15DC-4EA3-AAE2-8A8A6C79D471/scripts/utils.py", line 144, in append_to_daily_vault new_text = insert_text(vault_path, header, message) File "/Users/ballard/Documents/Alfred/Preferences/Alfred.alfredpreferences/workflows/user.workflow.5F68CEB5-15DC-4EA3-AAE2-8A8A6C79D471/scripts/utils.py", line 104, in insert_text raise ValueError(f"Could not find header `{header}`") ValueError: Could not find header `## Bookmarks`
  3. I got this error when trying to run: (in Alfred Debugger) [13:10:48.407] Logging Started... [13:10:58.486] Obsidian Idea Capture[Keyword] Processing complete [13:10:58.488] Obsidian Idea Capture[Keyword] Passing output 'testing dd ' to Arg and Vars [13:10:58.489] Obsidian Idea Capture[Arg and Vars] Processing complete [13:10:58.490] Obsidian Idea Capture[Arg and Vars] Passing output '' to Run Script [13:10:58.553] ERROR: Obsidian Idea Capture[Run Script] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  4. Thanks for responding and trying to help me, @deanishe. So is what I'm trying to do impossible without writing a Script Filter to accomplish this? I've been searching workflows but haven't found any that seem similar, have you run across any that might be *close* to what I'm trying to do? Thanks again.
  5. @deanishe is there a way to include the "IN" search parameter in the workflow. I thought Alfred could search within certain files?
  6. I have downloaded a few workflows for content searches within files (PDF, Mindnode etc) but can't seem to get this to work for my intended workflow. OBJECTIVE: I'm trying to search for content within a single, large taskpaper file that I use to log clippings, URL's, and notes. I'd like to search this file for keywords/key phrases and have Alfred display all instances of the keyword where it occurs in the document. HERE'S WHAT I'VE GOT SO FAR: I've created a workflow that 1)Matches the taskpaper file format 2) Searches only the directory where the file is located (is there a better way to search within just one file?) and 3) includes the kMDItemTextContent field filter. I can't get it to work. I successfully access the workflow with a keyword and the minute I start typing it becomes a google search? I've written/modified quite a few workflows but I just can't figure out what I'm doing wrong here. Any and all help is appreciated!
  7. Sorry, I thought I had the latest version. Thanks for responding! Works perfectly.
  8. 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) ', {}
  9. 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')"
  10. 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!
  11. Thanks for responding deanishe, I didn't run the debugger! Doh. The location of WGET was the main issue. Thank you, that solved it!
  12. 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
  13. Thank you, Englebert! Great script. Works well with non-google app gmail accounts as well. Exactly what I was looking for!
  14. dfay and raguay, thank you both for responding. I'm looking at both solutions now.
×
×
  • Create New...