Yes, I see what you mean. There are two steps for you to take.
First, please file a bug report
at https://github.com/quicksilver/Quicksilver/issues. That's where
Quicksilver's coders will see it and be able to fix it. Otherwise, they'll
probably forget about it even if they read this comment thread.
Second, in the meantime, you can modify your scripts as shown below. By
telling System Events to activate and then telling the previously frontmost
application to activate, you will restore focus to the window that the
selection was grabbed from. This worked for me using a trigger with Current
Selection in its first pane and this AppleScript action in its second pane.
*using terms from* *application* "Quicksilver"
*on* *process text* theText
*my* pasteModifiedText(theText)
*end* *process text*
*end* *using terms from*
*on* pasteModifiedText(theText)
*tell* *application* "System Events" *to* *set* FrontApp *to* (name *of* (
*processes* *whose* frontmost *is* *true*)) *as* *text*
*tell* *application* "System Events" *to* *activate*
*tell* *application* FrontApp
*activate*
*set* theText *to* "{>>@vg " & theText & "<<}"
*set* OldClipboard *to* *the clipboard*
*set the clipboard to* {*text*:(theText *as* *string*), *Unicode text*:
theText}
*tell* *application* "System Events" *to* *keystroke* "v" using {*command
down*}
*set the clipboard to* OldClipboard
*end* *tell*
*end* pasteModifiedText
On Wednesday, February 19, 2014 4:26:14 PM UTC-5, backup Gutierrez wrote:
>
> It seems as if the Grab command in Quick Silver to get text selections
> makes the window inactive, so that I cannot paste into the originating
> application.I had a bunch of applescripts in Quicksilver that allowed me
> to select some text, use a quicksilver trigger, and then get different
> results automatically replace that text (pasting on top). It all stopped
> working recently. I am changing my scripts to copy things to the
> clipboard instead of pasting them, but it took the magic out of "triggers."
> I heard that I can accomplish similar things with TextExpander and similar
> programs, but I think the power of applescripts and quicksilver is much
> better. Are the developers aware of this bug?
>
--
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 http://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/groups/opt_out.