title: AppleScript keystroke
body: <p>I use an app, and I want to get a data from this app,</p>
  
  <p>I found a button on the menu bar > Edit > Optionwanted </p>
  
  <p>I also found that the option have a shortcut (C + COMD + CTRL + SHIFT)</p>
  
  <p>I'm not sure this is the best approach but I tried : </p>
  
  <pre><code>activate application "App"
  
  delay 1
  tell application "System Events" to keystroke "C" using {control down, command down, shift}
  </code></pre>
  
  <p>but then the result is </p>
  
  <blockquote>
    <p>System Events got an error: Can’t make {control down, command down,
    shift} into type constant or list of constant.</p>
  </blockquote>
  
  <ol>
  <li><p>is that the best approach to get text from an App ?</p></li>
  <li><p>I can I fix my script.</p></li>
  </ol>
  
  <p>PS : when I run </p>
  
  <pre><code>tell application "System Events" to tell application process "App"
      set stuff to entire contents of front window
  end tell
  return stuff
  </code></pre>
  
  <p>I can see what I want there :</p>
  
  <blockquote>
    <p>application process "App", static text "445511" of group 3 of
    group 1 of group 2 of group 5 of UI element 1 of scroll area 1 of
    group 2 of group 1 of group 2 of UI element 1 of scroll area 1 of
    splitter group 1 of window "The Title is actually not static"</p>
  </blockquote>
  
  <p>That can be a another approach but the title and Text is dynamic and change all the time.</p>