Jump to content

dsavvinov

Member
  • Posts

    1
  • Joined

  • Last visited

dsavvinov's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. @richardsison, wow, that's great news! Just when I started to think how can I hack the Web UI via injecting JS and inspecting DOM Here's what I came up with: GDrive Link. It also should handle cases when the Chrome isn't opened or when multiple windows of Chrome are present. That's my first Alfred Workflow though, so let me know if something is wrong or can be improved! Now I'm bashing my head against the following issue: I want to have more control over windows focus. In particular, I'd like to be able to open Chrome (if needed) and then open URL in it without losing focus of the current window. Scenario: I chat with my colleague in Slack, we decide that we should have a quick call in Meet, I invoke Alfred Workflow, everything is opened in background, URL is copied into clipboard, I immediately paste it into the chat box. Currently, workflow calls `activate`, so after invoking it you're switched to Chrome window, then URL is copied into the clipboard, and then I'd need to switch back to Slack. Yes, that's like one keystroke, but we're automating things here, right? I'd appreciate any tips here -- I've found that I can launch application in background through shell invocation `open -ga "Google Chrome"`, but it still steals the focus for me. This seems to be a Chrome(-ium) specific thing though, some of my applications (say, Sublime Text) launch in background perfectly with `-ga`.
×
×
  • Create New...