fortin icon

[EVERNOTE] Copy Note Link and convert to Classic schema

fortin | PRO | 04/07/17 07:46:19 AM UTC | 0 ⭐ | 10840 👁️ | Never ⏰ | []
AppleScript |

390 B

|

None

|

0 👍

/

0 👎

tell application "Evernote"
    set _sel to selection
    if _sel ≠ {} then
        set theNote to first item of _sel
        set theURL to (note link of theNote)
    end if
end tell
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"
do shell script ENcode

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎