Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Clip to Evernote via Quicksilver and AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clip to Evernote via Quicksilver and AppleScript
Authored by: jedverity on Mar 17, '10 07:58:46PM

I've updated the script to be a little easier to use and to be more (but not completely) compatible with Evernote's email tagging syntax.

Instead of nb:notebook, you type @notebook

Instead of tags:tag1 tag2, you type #tag1, tag2

If you use commas in your tags, you can change the "tag_delimiter" argument to whatever you want.

Note also that this means you can't have @ or # elsewhere in your note!

Get it here: http://jedverity.com/public/Clip%20to%20Evernote.zip



[ Reply to This | # ]
Fix The Parsing of The Note's Title in Clip to Evernote via Quicksilver and AppleScript
Authored by: bighbln on May 23, '10 02:49:51AM
Hi, the titles were not being parsed correctly due to a bug. Changing the "=" into "≠" as below will fix it.

to gettitle()
	set title to my getdata("title:", defaults's title)
	if title 
 "" then
		set cpos to offset of ":" in txt
		if cpos > 0 then
			set title to my trim(text 1 thru (cpos - 1) of txt)
		end if
	end if
	return title
end gettitle


[ Reply to This | # ]
Fix The Parsing of The Note's Title in Clip to Evernote via Quicksilver and AppleScript
Authored by: travellingman on Jun 18, '10 01:30:05PM
Actually, the problem I see is that the default title, if it is set to a non-empty string, overrides any title specified in the input string. This may be working-as-designed, but you may prefer it not to behave this way. If you want it the other way around...that is the input string's title, if present, overrides the default title... then try this for gettitle():
to gettitle()
	set title to ""
	set cpos to offset of ":" in txt
	if cpos > 0 then
		set title to my trim(text 1 thru (cpos - 1) of txt)
	end if
	if title = "" then
		set title to my getdata("title:", defaults's title)
	end if
	return title
end gettitle


[ Reply to This | # ]