Skip to content

Instantly share code, notes, and snippets.

@lsfalimis
Created May 22, 2014 07:35
Show Gist options
  • Save lsfalimis/b8e9f910b28ae2fab277 to your computer and use it in GitHub Desktop.
Save lsfalimis/b8e9f910b28ae2fab277 to your computer and use it in GitHub Desktop.
Save the Website Screenshot to EN
tell application "Google Chrome"
set theDate to current date
set y to text -4 thru -1 of (year of theDate as string)
set m to text -2 thru -1 of ("0" & ((month of theDate) as integer))
set d to text -2 thru -1 of ("0" & (day of theDate))
set timeStamp to y & "-" & m & "-" & d & " " & time string of (current date)
set theTitle to title of active tab of first window
set theURL to URL of active tab of first window
tell application "Evernote"
create note notebook "Snagit" title theTitle with text theURL & return & return & timeStamp & return & return attachments theFile
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment