title: How do I invoke enter with keystroke in AppleScript so Web Clipper will save a web page to Evernote?
body: <p>Lately I have discovered Automator (yes, finally she did that) and I wanted to make an event which runs at a regular interval using Calendar. I wanted to save a particular web page to Evernote using the Web Clipper extension in Safari.</p>
  
  <p>I set up my Web Clipper to start on $, F = Full page, enter = Save.</p>
  
  <p>I have come so far as to actually have an event which works by:</p>
  
  <ol>
  <li>Creating a new document in Automator of the type Calendar</li>
  <li>Adding "Get Specified URLs" with the URL I want</li>
  <li>Adding "Display Webpages"</li>
  <li>Adding "Run AppleScript" with the following code - I'm a total noob at AppleScript so you might say I could have done it in a better way ... then do tell ;) ...:</li>
  </ol>
  
  <pre>
      tell application "Safari" to activate 
      delay 5
      tell application "System Events"
          keystroke "$" -- key code 10 = Activate Web Clipper (custom shortcut)
      end tell
      delay 1
      tell application "System Events"
          keystroke "f" -- key code 3 = Full page saved by Web Clipper
      end tell
      tell application "System Events"
          key code 36 -- works to save page, however, 'keystroke enter' does not
      end tell
  </pre>
  
  <p>5.Saving the document in a Calendar event and set it up to repeat.</p>
  
  <p>I found some help <a href="https://apple.stackexchange.com/questions/36943/how-do-i-automate-a-key-press-in-applescript">here with a list of key code values</a>, however, I couldn't find "enter" in the list. I used a little free app called <a href="http://manytricks.com/keycodes/" rel="nofollow noreferrer">Key Codes</a> instead to figure out that enter has the key code 36.</p>
  
  <p>I would rather be able to use keystroke, since it is easier to read than some number. Can anyone help?</p>