It worked! Reversing the commands does the trick:
*tell* *application* "Safari"
*make* new *document* with properties {URL:"http://www.google.com"}
* activate*
*end* *tell*
Now even if Safari is not assigned to a certain space, everything works as
it should when using the Quicksilver HotKey. The new window with the URL
opens in the current space, I stay in the current space, and the window
gets the focus. If I leave the activate command out altogether, the window
with the new URL does open, but it does not get the focus.
Thanks for your help!
Regards,
Lisa
Lisa
On Sun, Feb 8, 2015 at 1:30 PM, Rob McBroom <[email protected]>
wrote:
> On 7 Feb 2015, at 14:22, Lisa Brown wrote:
>
> There is a caveat, however: If I am in a different space/desktop from the
>> main Safari app, the new window opens in the current space, but I am moved
>> to the space where the other Safari windows are located.
>>
>
> Probably because the script tells Safari to activate first, which will
> focus whatever’s currently open. You could try reversing the two commands,
> so it opens the URL first, then activates. Or just take “activate” out
> altogether and see what happens. You might not even need it.
>
> If that doesn’t work, I’m sure there’s some AppleScript way to select the
> new window, but I don’t use AppleScript so I can’t be specific.
>
>
> --
> Rob McBroom
> http://www.skurfer.com/
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Quicksilver" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/blacktree-quicksilver/GRYHOfZq0Ro/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to blacktree-quicksilver@
> googlegroups.com.
> Visit this group at http://groups.google.com/group/blacktree-quicksilver.
> For more options, visit https://groups.google.com/d/optout.
>
--
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/d/optout.