title: Iterm2 enable Broadcast Input Shortcut using Applescripts
body: <p>Is there a way to enable an Iterm2 instance with two sessions, and enable the Broadcast Input Shortcut capability on both sessions using AppleScripts?.</p>
  
  <p>I have been trying to enable it using at least keystrokes but I was not able to do it.</p>
  
  <p>Here is an example of the code:</p>
  
  <pre><code>    tell application "iTerm"
          activate
      end tell
      tell application "iTerm"
          tell current window
              set newWindow to (create tab with default profile)
              tell current session of newWindow
                  split horizontally with same profile
              end tell
              tell session 1 of newWindow
                  set transparency to 0.5
                  write text "clear"
                  delay 1         
              end tell
              tell session 2 of newWindow
                  set transparency to 0.5
                  write text "clear"
                  delay 1
              end tell
          end tell
          -- keystroke "L" using {control down, option down, command down, shift down}
      end tell
  </code></pre>
  
  <p>I'm not asking for the code, just asking the command or the right way to solved this.</p>