Jump to content

TeaLeaves99

Level 1
  • Posts

    1
  • Joined

  • Last visited

Posts posted by TeaLeaves99

  1. On 1/18/2016 at 4:35 PM, masterninja01 said:

    Ends up I started using an applescript I could automate with a keyboard shortcut using alfred. Here's the applescript:

    
    try
    	
    	tell application "Evernote"
    		set enLink to missing value
    		
    		synchronize
    		
    		repeat until isSynchronizing is false
    			--THIS EMPTY LOOP WILL PAUSE SCRIPT UNTIL PREVIOUS SYNC IS FINISHED
    		end repeat
    		
    		set savedDelimiters to AppleScript's text item delimiters
    		set AppleScript's text item delimiters to {"/"}
    		
    		set foundNotes to selection
    		set copyLink to ""
    		
    		repeat with aNote in foundNotes
    			repeat while enLink is missing value
    				set enLink to note link of aNote
    				-- display notification enLink with title "Note"
    			end repeat
    			set copyLink to copyLink & enLink & "
    "
    			set enLink to missing value
    		end repeat
    		set the clipboard to copyLink
    		display notification copyLink with title "Copy Evernote classic note link" subtitle ((count of foundNotes) as string) & " notes processed"
    		
    		set AppleScript's text item delimiters to savedDelimiters
    		
    	end tell
    	
    on error errmsg
    	display dialog errmsg buttons {"Oops, an error occurred!"}
    	
    	
    end try

    The applescript is from Sander Robijns. It's wrapped in an alfred workflow. If you use alfred then just use Sander's workflow. If not, use the applescript and trigger it with other automation apps (i.e. Keyboard Maestro or even Services in OSX). I think this is a suitable workaround. 

    Master Ninja (and Sander), this was super helpful. Any idea how to get it paste as the Note Title with the link embedded though?

×
×
  • Create New...