Advertisement
fortin

[EVERNOTE] Copy Note Link and convert to Classic schema

Apr 7th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Evernote"
  2.     set _sel to selection
  3.     if _sel ≠ {} then
  4.         set theNote to first item of _sel
  5.         set theURL to (note link of theNote)
  6.     end if
  7. end tell
  8. set ENcode to "echo \"" & theURL & "\" | sed -E 's#https?://www.evernote.com/shard/(..)/(..)?/([0-9]*)/(.*-.*-.*-.*-.*)/?.*#evernote:///view/\\3/s2/\\4\\4#' | tr '\\n' ' ' | tr -d '[[:space:]]' | pbcopy"
  9. do shell script ENcode
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement