Afraid that one doesn’t work. Had to change “shift” to “option” for my 
particular setup, but still, doesn’t open any window. Oh well. 

--
Jonathan Levi
Entrepreneur & Eclectic
http://jle.vi <http://jle.vi/>
IL: +972 54 296 - 0318
US: +1(408) 318 - 2875

P.S. If I could ask you to do me just ONE favor today, it would be to check out 
either my TED talk <http://jle.vi/tedx> or my Podcast <http://jle.vi/podcast> 
and share it if you enjoy it! Thanks!

P.P.S. My goal is to drastically reduce my use of email in 2016. I hope you’ll 
join me, and together, we can all be our most productive, least distracted 
selves!

> On 11 Jan 2016, at 11:51, Jon Stovell <[email protected]> wrote:
> 
> Unfortunately, Safari does not offer programmatic access to its privacy mode. 
> But you can accomplish the task easily enough using this:
> 
> using terms from application "Quicksilver"
> 
>       on process text theURL
> 
>           
>                 tell application "Safari"
> 
>                        set window_ids to id of every window
> 
>                     activate
> 
>                 end tell
> 
>                 
>                 tell application "System Events" to keystroke "N" using 
> {command down, shift down}
> 
>               
>                 tell application "Safari"
> 
>                        repeat 10 times
> 
>                          if id of front window is not in window_ids then
> 
>                                  set the URL of its front window's current 
> tab to theURL
> 
>                                  exit repeat
> 
>                              end if
> 
>                           delay 0.1
> 
>                        end repeat
> 
>               end tell
> 
>         end process text
> 
>         
>         on get direct types
> 
>              return {"NSStringPboardType", "Apple URL pasteboard type"}
> 
>       end get direct types
> 
> 
> end using terms from
> 
> 
> Just save it ~/Library/Application Support/Quicksilver/Actions with a name 
> like "Open in Private Safari Window" and relaunch QS.
> 
> On Monday, January 11, 2016 at 12:21:20 AM UTC-7, Jonathan Levi wrote:
> Hey, thanks for the fast reply.
> 
> I'm on QS 1.3.4, and on Yosemite, so I don't have AppleScript Editor, I have 
> "Script Editor"
> 
> Got it working in Chrome!!! Awesome, thank you. 
> 
> I guess this works and fulfills my needs. I don't understand really how to 
> modify your code to make it open a private Safari window. I read your reply 
> about 10x, but I'm not sure if we're talking about the same thing. It sounds 
> like you're offering a way to move a page from Safari to a chrome incognito 
> window. I'm looking for a way to launch a private safari window with whatever 
> input is in the left pane on quicksilver.
> 
> If you're feeling generous, I'd love a way to do it, but if not, you've 
> already helped me a great deal and I can use the script you gave me to do 
> what I want (though it has a lot more features I don't understand yet)
> 
> Thanks
> JL
> 
> 
> 
> 
> 
> 
> 
> On Sunday, January 10, 2016 at 2:47:06 PM UTC+2, 1.61803 wrote:
> On Sunday, January 10, 2016 at 9:38:50 AM UTC+1, Jonathan Levi wrote:
> By the way, I made .scpt files in the appropriate directory for each of 
> these, but I can't get either of them to work.
> 
> Both actions I tested in QS 1.2.0.
> 
> How about you give a more detailed description of your problem?
> 
> E.g., do the scripts compile in AppleScript Editor, do the actions show in 
> the second pane, do you see any errors in Console?
> 
> 
> You can use Proxy Objects from QS's catalogue to open the current URL in 
> another browser.
> 
> Current Web Page (Safari) ⇥ Open With… ⇥ Your Browser
> 
> As explained in this thread before, for private modes you'll rather have to 
> resort to some applescript.
> 
> I use the longer script I posted in the second pane in a trigger scoped to 
> Safari.
> 
> Current Web Page (Safari) ⇥ Incognito Window
> 
> -- 
> 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/pb11EIZALYg/unsubscribe
>  
> <https://groups.google.com/d/topic/blacktree-quicksilver/pb11EIZALYg/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/blacktree-quicksilver 
> <https://groups.google.com/group/blacktree-quicksilver>.
> For more options, visit https://groups.google.com/d/optout 
> <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 https://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.

Reply via email to