title: Where to find the a list of all application name available for tell application apple script?
body: <p>For example in the tutorial <a href="https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html" rel="nofollow noreferrer">here</a>
  <code>tell application "Finder"</code>
  Finder is an app in my system.
  <code>Terminal</code> as well.
  However, if I replace <code>Terminal</code> with <code>iTerm</code> which is also an App named like that in my applications list, it wouldn't work. Even it is shown in some of the answer from SO like following</p>
  
  <pre><code>#!/bin/bash
  osascript -e '
    tell app "iTerm"
      activate
      tell the first terminal
        launch session "Default Session"
        tell the last session
          set name to "New Session"
          write text "cd /usr/bin; ls"
        end tell
      end tell
    end tell'
  </code></pre>
  
  <p>it will return error of
  <code>52:60: syntax error: Expected class name but found identifier. (-2741)</code></p>
  
  <p>Or something like </p>
  
  <pre><code>#!/bin/bash
  osascript -e '
     tell application "Terminal"
     do script "date"
     activate
     end tell'
  </code></pre>
  
  <p>It works, but when I replace <code>Terminal</code> to <code>iTerm</code> it returns error of <code>35:41: syntax error: Expected end of line but found “script”. (-2741)</code></p>
  
  <p>So suspect I am using the wrong app name even it appears to be <code>iTerm</code> is the actual app name, but it seems not, as it caused error above. If I can have a list of the actual app names I can use, it may help me to tackle it
  *NOTE: I do have iTerm installed, and that's why I want to refer to it...</p>