The best and easiest way to do that would be to create an AppleScript to
carry out that sequence of commands, and then set up a trigger in
Quicksilver to run the script.
Here's a step by step walkthrough for how to do that.
1. Open Script Editor
2. Paste in the following code:
3.
*tell* *application* "System Events"
*keystroke* l using {*command down*}
*keystroke* c using {*command down*}
*keystroke* w using {*command down*}
*key code* 53 using {*command down*}
*keystroke* t using {*command down*}
*keystroke* l using {*command down*}
*keystroke* v using {*command down*}
*key code* 36
*end* *tell*
4. Save this as "Move Tab to Other Chrome Window.scpt" (or whatever you
want to call it) in ~/Documents (an easy place to keep it) or
~/Library/Scripts (the "proper" place) or anywhere you want. Just make sure
the folder you save it in is a folder that Quicksilver indexes.
5. Following the directions in Howard Merman's user guide
<http://qsapp.com/docs/Quicksilver.pdf>, add a trigger to run this
script. Just select the script in the first pane of the trigger, and the
Run action in the second pane.
6. One feature that has been added since Howard wrote his guide is the
ability to define a scope for a trigger. Once you've made the trigger,
click the ⓘ button in the footer bar to show the Info panel for your
trigger. In the Info panel, click on the Scope tab, and then set the scope
to only apply in Chrome.
If you prefer, you could just paste the code above directly into the first
pane of your trigger and then choose the Run as AppleScript action in the
second pane. The net effect will be the same either way.
Side note: If the AppleScript code above makes no sense to you and you are
curious, feel free to ask for an explanation of how it works. :)
On Wednesday, 10 February 2016 12:25:14 UTC-7, Peter Kingswell wrote:
>
> Hi,
>
> I can't find this in the various literature but I apologise if it's been
> asked before (I'm a QS noob, coming from AutoHotKey). What I want is to
> set up a hotkey e.g. alt-cmd-l that is scoped to Chrome.app that:
>
> 1. sends cmd-l
> 2. sends cmd-c
> 3. sends cmd-w
> 4. sends cmd-esc
> 5. sends cmd-t
> 6. sends cmd-l
> 7. sends cmd-v
> 8. sends <return>
>
> This will in effect "move" a tab from one Chrome window to the other.
> Motivation: I have a work Chrome window and a personal Chrome window.
> Often links open in the "wrong" window. It would be awesome if I could
> "move" that tab to the other window in an instant.
>
> Many thanks and apologies for the noob-ity,
> Peter
>
>
--
You received this message because you are subscribed to the Google Groups
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.