Jump to content

Look

Level 1
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Look

  1. Just realized that I made a stupid mistake in the above script. set htmlLink to "<a href=" & noteLink & "\">" & noteTitle & "</a>" should be: set htmlLink to "<a href=" & noteLink & ">" & noteTitle & "</a>" No idea how the extra \" got there. updated script =========== tell application "Evernote" set _sel to selection if _sel ≠ {} then set aNote to first item of _sel set noteTitle to (get title of aNote) set noteLink to (get (note link) of aNote) set htmlLink to "<a href=" & noteLink & ">" & noteTitle & "</a>" end if do shell script "echo " & quoted form of htmlLink & "|textutil -inputencoding UTF-8 -format html -convert rtf -stdin -stdout|LC_CTYPE=UTF-8 pbcopy" end tell
  2. tell application "Evernote" set _sel to selection if _sel ≠ {} then set aNote to first item of _sel set noteTitle to (get title of aNote) set noteLink to (get (note link) of aNote) set htmlLink to "<a href=" & noteLink & "\">" & noteTitle & "</a>" end if do shell script "echo " & quoted form of htmlLink & "|textutil -inputencoding UTF-8 -format html -convert rtf -stdin -stdout|LC_CTYPE=UTF-8 pbcopy" end tell
  3. It seems like the parenthesis in note title "Copy Evernote Note Link (Classic) Script" caused this error. Remove parenthesis should fix it. I'm not familiar with rich text format, I'll see if I can find a workaround.
  4. tell application "Evernote" set _sel to selection if _sel ≠ {} then set aNote to first item of _sel set the clipboard to "[" & (get title of aNote) & ]" & "(" & (get (note link) of aNote) & ")" end if end tell
  5. Yes. Use the script from DanielB, again wrap "note link" in parentheses. tell application "Evernote" set _sel to selection if _sel ≠ {} then set aNote to first item of _sel set the clipboard to (get title of aNote) & return & (get (note link) of aNote) end if end tell Or download JMichael's script, which stores note title with link in RTF. Just replace "note link" with "(note link)" in the script.
  6. try wrap "note link" in parentheses, it should work. tell application "Evernote" set _sel to selection if _sel ≠ {} then set aNote to first item of _sel set the clipboard to (get (note link) of aNote) end if end tell
×
×
  • Create New...