title: can't understand a error that happen when assigning variable in applescript
body: <p>I'm new to applescript and even this community, so this question seems to odd. If so,I'm sorry.
  But I can't find answers in googling. So let me ask.</p>
  
  <p>When I ran the code</p>
  
  <pre><code>tell application "Evernote"
      set theNote to item 1 of selection
      set theTitle to (title of theNote)
  end tell
  </code></pre>
  
  <p>I got an error that says </p>
  
  <pre><code>/var/folders/fm/k76y42cs1y98bjwfyf951q1r0000gn/T/vbkvTSQ/55:47:53: execution error: Evernote got an error: Can’t make item 1 of selection into type specifier. (-1700)
  </code></pre>
  
  <p>but if I run below,</p>
  
  <pre><code>tell application "Evernote"
      set theNote to (selection)
      set theNote to item 1 of theNote
      set theTitle to (title of theNote)
  end tell
  </code></pre>
  
  <p>I could get expected result.</p>
  
  <p>Why does this error happen? I can't see the deffernce of two codes.</p>