title: AppleScript error: 'Expected "else", etc. but found unknown token'
body: <p>I'm new to AppleScript. The editor isn't giving me syntax highlighting so I'm a bit stuck with this error.</p>
  
  <pre><code>set exportPath to path to documents folder as text
  
  with timeout of (30 * 60) seconds 
      tell application "Evernote"
          repeat with nb in every notebook of application "Evernote"
              set theName to the name of nb
              set matches to find notes "notebook:" &amp; "\"" &amp; theName &amp; "\""
              set f to exportPath &amp; theName &amp; ".enex"
              export matches to f
              if (count of matches) &gt; 0 then 
                  set p to POSIX path of f
                  do shell script "/usr/bin/gzip -f " &amp; quoted form of p
              ￼end if
          end repeat 
      end tell
  end timeout
  </code></pre>
  
  <p>When I click OK on the error the cursor position is changed to before the end in the end if line.</p>