title: Script delete line for xcode
body: <p>I have some problem with the default script of xcode, here is my script to delete line :</p>
  
  <pre><code>on run
      tell application "System Events"
          keystroke (ASCII character 29) using {command down}
          keystroke (ASCII character 8) using {command down}
          keystroke (ASCII character 8)
      end tell
  end run 
  </code></pre>
  
  <p>(command right ; command delete; delete)</p>
  
  <p>The script work but, it do not delete the empty line when i use a keyboard shortcut ("command D" for me).</p>
  
  <p>Please help me to make it work.</p>