quicksilver application focus after action

63 views
Skip to first unread message

cwd

unread,
Jan 23, 2013, 8:28:21 PM1/23/13
to blacktree-...@googlegroups.com
When I'm in an application like Textmate and use the "Get Internal Section" service (keyboard shortcut) I get the text in Quicksilver and I can perform an action on it, like Large Type.




After "Large Type" has completed the Menu Bar still says "TextMate" but my window is no longer focused. damn.

I thought there used to be a setting for how QS would pass focus back to the application after an action. Does anyone have some tips for me on this?

Patrick Robertson

unread,
Jan 24, 2013, 3:47:15 AM1/24/13
to blacktree-...@googlegroups.com
Since Apple introduced Sandboxing, we unfortunately had to change the way that Quicksilver gets the current selection. Still, it's strange that this happens when you explicitly use the keyboard shortcut (I'm guessing you're using ⌘⎋).

I'll take a look and see what we can do

--
You received this message because you are subscribed to the Google Groups "Quicksilver" group.
To post to this group, send email to blacktree-...@googlegroups.com.
To unsubscribe from this group, send email to blacktree-quicks...@googlegroups.com.
Visit this group at http://groups.google.com/group/blacktree-quicksilver?hl=en.
 
 

Patrick Robertson

unread,
Jan 24, 2013, 4:23:08 AM1/24/13
to blacktree-...@googlegroups.com
Nope, unfortunately it doesn't look possible. You can see the original pull request and discussion here:

I've tried playing with low level APIs to return focus to the original app but they either close the QS window (when it loses focus) or just don't give the desired effect.

cwd

unread,
Jan 24, 2013, 8:37:33 AM1/24/13
to blacktree-...@googlegroups.com
Thanks for sharing the information about the sandboxing. It sounds unfortunate for QS although it is undoubtedly a good practice :(

So it looks like because of the Sandboxing that the old Get Internal Selection method would fail - so the new method is in place - but the new method causes the current application to lose focus (focus goes to Quicksilver) - opposed to invoking quicksilver without the Get Internal Selection which pulls up quicksilver but leaves the "Focus" in the current application...

I notice though that if I quit quicksilver after getting the internal selection the focus returns to the previous application.

Do you think there could be any sort of workaround to let the current application retain focus when getting the selection?

  • Hack OS X somehow to disable sandboxing for certain (trusted) apps (TexMate, etc)
  • Run some sort of applescript type of thing ( "activate application TextMate.app" ) when returning the selection to Quicksilver
  • Sending a fake exit / or maybe a minimize signal to OS X after getting the selection so it would push the focus back to the previous app?

Thoughts?



Rob McBroom

unread,
Jan 24, 2013, 9:07:28 AM1/24/13
to blacktree-...@googlegroups.com
On Jan 24, 2013, at 4:23 AM, Patrick Robertson <robertso...@gmail.com> wrote:

> I've tried playing with low level APIs to return focus to the original app but they either close the QS window (when it loses focus) or just don't give the desired effect.

Could you do whatever you’re doing in `windowDidClose`? I suppose we can talk about this elsewhere. :-)

--
Rob McBroom
<http://www.skurfer.com/>

cwd

unread,
Jan 24, 2013, 2:14:25 PM1/24/13
to blacktree-...@googlegroups.com, mailin...@skurfer.com
let me know where this discussion picks up (github?) so I can follow along :) thanks for looking into this

Rob McBroom

unread,
Jan 25, 2013, 12:57:15 PM1/25/13
to blacktree-...@googlegroups.com
On Jan 24, 2013, at 2:14 PM, cwd <clar...@gmail.com> wrote:

> let me know where this discussion picks up (github?) so I can follow along :) thanks for looking into this

https://github.com/quicksilver/Quicksilver/issues/1351
Reply all
Reply to author
Forward
0 new messages