Hi Rob,

Thanks for your reply. I'm using Safari 8.0.3 with Mac OS X Yosemite
10.10.2. In Safari Preferences > Tabs, I have "Open pages in tabs instead
of windows" set to "Automatically".

When I said "run in Quicksilver", I was creating a HotKey in Quicksilver to
run the script, and then I was typing the HotKey.

After restarting my system, it seems to be working now. It's not opening
the URL in both a new tab and window, just a new window.

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. This is a little
inconvenient. If I run the script from within Script Editor (by pressing
the play button when the script is open), the new window opens in the
current space, and I stay in the current space. The simplest way to fix the
issue was to assign Safari to a single space. When I use my Quicksilver
HotKey to run the script, now I am moved to the space that is assigned to
Safari, the new window opens in that space, and it gets the focus.

The script I'm using is this simplified one (with google as an example
webpage):

*tell* *application* "Safari"

*activate*

*make* new *document* with properties {URL:"http://www.google.com"}

*end* *tell*


If I wanted to have different Safari windows open in different spaces, and
I did not want to get automatically moved to a different space when I use a
Quicksilver HotKey to run this script, could I add another line of code to
ensure that I stay in the current space? (I know the spaces feature in OS X
has been a bit finicky since it was first introduced, so I wouldn't be
surprised if this is unavoidable.)

Regards,
Lisa


Lisa



On Sat, Feb 7, 2015 at 11:17 AM, Rob McBroom <[email protected]>
wrote:

> On 7 Feb 2015, at 1:07, Lisa Brown wrote:
>
> Is there any way to use Quicksilver to open a URL in a new window instead
> of a new tab?
>
> Quicksilver doesn’t do anything special. It just tells OS X to open the
> URL, and the behavior is determined by the OS and browser from there.
>
> If I run it from Quicksilver, the URL opens in a new tab and a new window.
>
> Can’t explain that. What do you mean by “run it from Quicksilver”? As text
> in the first pane using the “Run as AppleScript” action? Saving it to a
> file and using Quicksilver to run that?
>
> I tried both, and just got the URL in a new window.
>
> If you can figure out something that works, you can make your own “Open
> URL in new window” action using AppleScript and put it in 
> ~/Library/Application
> Support/Quicksilver/Actions.
>
> --
> 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
> [email protected].
> 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.

Reply via email to