Jump to content

etling

Member
  • Posts

    5
  • Joined

  • Last visited

etling's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Hey Clinton - I'm sure you have better things to do! I tried to debug your original workflow, but eventually gave up. I do a bit of Ruby development and use rbenv, and I think the issue might be with the version of Ruby I'm running and how it implements the 'Open3' module (although maybe that is a symptom, not the cause). Actually, if you could tell me which ruby version you're using with the workflow, maybe I could try specifying that in rbenv, and see if it changes anything. If you decide to go the websockets/extensions route, or just tweak the existing version, I will gladly test the heck out of it. -W
  2. Well, I got desperate (did I mention that I REALLY LOVE this workflow?) and ended up writing my own version in AppleScript. It only works with Chrome, because that's all I really need it for, but I may try to add other browsers sometime in the future. A warning: this is my first foray in AppleScript and only my second workflow, so it probably is terrible and will crash and not work for you. You have been warned. Known bug! If you have a Google Search open in a tab, it will not show up in the filter results. I'm not sure if this is because Google is using some proprietary Chrome API which makes Google search tabs somehow different than regular webpages? But for the time being I have not found a way around this. I'll try to fix it soon. Since I usually use tab search for hopping between email, Toggl, Trello, github, etc, it doesn't really bug me too much yet. I was failing to clean/escape the url's being returned, hence the inability to scrape for tabs of Google Searches. I've fixed that and will upload a new version (which also works with Safari) momentarily. Much of this is based on this very helpful post, "Generate Feedback in Alfred 2 Workflows": http://www.johneday.com/617/generate-feedback-in-alfred-2-workflows Here's the workflow: http://static.etling.com/assets/SearchChromeTabs.alfredworkflow
  3. Realized I could have been more helpful in my previous post. Here's the output of the error log. I already updated the Adobe Unit Types.osax file and restarted my machine, but that did not help. Looks like maybe it's the system Ruby version in Yosemite that's doing it? I am not sure. [ERROR: alfred.workflow.input.scriptfilter] Code 1: /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:30:in `block in osascript': AppleScript error: 2015-01-08 09:59:57.716 osascript[606:6233] ApplePersistence=NO (BrowserTabs::AppleScriptUtils::AppleScriptError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:217:in `popen_run' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:99:in `popen3' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:25:in `osascript' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:11:in `run' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/commands/command.rb:42:in `run' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs.rb:51:in `run_command' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs.rb:24:in `tabs' from filter.rb:7:in `<main>' [ERROR: alfred.workflow.input.scriptfilter] Code 1: /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:30:in `block in osascript': AppleScript error: 2015-01-08 09:59:57.955 osascript[609:6284] ApplePersistence=NO (BrowserTabs::AppleScriptUtils::AppleScriptError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:217:in `popen_run' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:99:in `popen3' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:25:in `osascript' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:11:in `run' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/commands/command.rb:42:in `run' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs.rb:51:in `run_command' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs.rb:24:in `tabs' from filter.rb:7:in `<main>' [ERROR: alfred.workflow.input.scriptfilter] Code 1: /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:30:in `block in osascript': AppleScript error: 2015-01-08 09:59:58.168 osascript[612:6297] ApplePersistence=NO (BrowserTabs::AppleScriptUtils::AppleScriptError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:217:in `popen_run' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:99:in `popen3' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:25:in `osascript' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/applescript_utils.rb:11:in `run' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs/commands/command.rb:42:in `run' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs.rb:51:in `run_command' from /Users/will/Google Drive/Synced Settings/Alfred2/Alfred.alfredpreferences/workflows/user.workflow.85921167-2BF3-45F1-8D2C-9445EC8F2D4F/browser_tabs.rb:24:in `tabs' from filter.rb:7:in `<main>'
  4. Just wanted to bump this topic and see if there's a new version that works on OSX Yosemite? I love this workflow, it saves me a ton of time. Currently when I start typing the query (beyond "tabs"), it fails to search for anything.
  5. I found myself often converting hours & minutes to a decimal format when creating invoices. This workflow simply does that calculation and copies it to the clipboard. Type in the keyword, then hours:minutes to get that amount of time in decimal (rounded to the nearest hundredth). For example, 6 hours and 38 minutes: dtime 6:38 Copies 6.63 to clipboard. http://static.etling.com/assets/decimal_time_workflow.zip
×
×
  • Create New...