title: Applescript to open youtube in safari private mode
body: <p>How can the youtube be opened in safari private mode?</p>
  
  <p>I have tried this, but it is not working:</p>
  
  <pre><code>tell application "Safari" to activate
  tell application "System Events"
  tell process "Safari"
        click menu item "New Private Window" of menu "File" of menu bar 1
        open location "https://www.youtube.com"  -- this will open default browser
  end tell
  end tell
  </code></pre>
  
  <p>My default browser is Chrome, and it opens youtube in chrome not in safari private mode.</p>
  
  <p>How to fix this?</p>