frogwell

Member +
  • Content count

    29
  • Joined

  • Last visited

Community Reputation

15 Neutral

2 Followers

About frogwell

Recent Profile Visitors

1,030 profile views
  1. Evernote for Mac 6.9 Released

    Why change how the in-page bookmark hyperlink behave? <a href="#some-anchor">Text</a> It used to work as expected (clicking on the link jumps/scrolls to the labeled part of the note) and I have used it to implement in-note Table of Content and such. At that time clipping webpages with similarly structured TOC also worked well. But this is gone for some reason in 6.9 (still worked at 6.8) and I wonder why? Considering how universal this kind of bookmark/anchor is in the general world of HTML/XML, it's surprising to see it taken out suddenly. Edited: Instead of opening the marked "#some-anchor", a link like this is opened instead: file:///Applications/Evernote.app/Contents/Resources/common-editor-mac/mac.xhtml#toc:some-code Why this?
  2. I'm just a bit wary about the implied responsibility and moral burden that come with money , because I cannot make any promise about committing to the project. And so far the plugin has only 158 downloads anyway... But I'm glad if you find it interesting. Yeah I learned about the sublime package a few months back when I had written a barely functioning version of EVND. I tried it and found it to be pretty cool, but not quite what I want. For a few reasons: 1. No MathJax. This is very, very high on my priority list. MacDown and StackEdit don't sync to Evernote, and Marxico doesn't support macros, etc. MathJax was the main reason that I decided I'd write my own thing in the first place. 2. Authentication. Since I do use the official Evernote mac client, the "developer token" implementation is a bit counter-intuitive to me. I've decided early on the idea of taking advantage of applescript, and I want everything to be done locally without going through web authorization, etc., hence the implementation of EVND would differ from that of Evernote for Sublime Text from a relatively low level. 3. Forced two-way syncing. I felt it would be hard to add support for various themes and ensure consistent one-way syncing (Atom->Evernote) based on how Evernote for Sublime Text works in general. Especially when MathJax is involved. 4. Atom being based on web technologies. Therefore writing an Atom package is quite different from writing one for Sublime Text. On one hand, Atom is very cool when it comes to markdown, html, css, javascript, etc. But on the other hand, it's not as nearly as fast as Sublime Text, or TextMate or VIM for that matter. As for Sublime Text... I don't think it would be easy to have features such as split preview, synchronized scrolling, etc. which are almost essential in most markdown editors. Basically these are the reasons that I gave up on the idea of porting Evernote for Sublime Text... I'm glad that you like it :-)
  3. Hello, I've written a Atom plugin called EVND (Ever Notedown) that sort of turns Atom into an alternate Markdown editor for Evernote. I can sort of think of ways of adding features to meet your needs. Currently with EVND users can create notes from specified plain text templates and apply specified CSS to the rendered result, and easily send to Evernote (Mac Client). Do you think it would make sense for your needs if there's a menu such as "Create new note -> From Template -> Dialog"? EVND is currently OSX only because it uses AppleScript to communciate with the Evernote client, but since EN has similar scriptibility for OSX and Windows so it should be a relatively easy task to make it work for Windows. Would you be interested in taking a look? EVND is far from well-written as I initially meant for it to be only for my own use, but since it's open source... maybe there's a chance you find some use with it. I opened a thread about EVND in the third-party app subforum, you can also check out the github repo here. A demo of EVND applying different themes(css) to notes:
  4. I guess the short answer is I don't have time or motivation to seriously invest in developing a commercial product. And EVND at this moment is very, very far from mature. It works fine for me, because when an error pops up I as the author could easily figure out what happened and what to do, but to make it work for general users would be a totally different story (for now I don't even know how to explain the installation/set up process to users who doesn't know about GIT). It started as a very simple extension to the official Atom Markdown Preview package that sends rendered HTML to Evernote as a new note, then I thought I would like to have this and that, so I added one thing after another... but I've never meant for it to be a serious commercial product. Add that to the facts that Atom Editor itself being open source, and that I've borrowed code from other open source projects, etc., I can only see EVND being open source.
  5. The package: EVND (Ever Notedown) So this is a plugin for Atom Editor by Github that acts like an alternate editor for the Evernote Mac Client. Basically it extends Atom's Markdown editing capacities with features like LaTeX/MathJax equation editing, TOC, footnotes, image insertion via pasting, etc. And it communicates with the Evernote Mac Client via AppleScript so it can do things like creating/updating notes (as rendered HTML), import notes from Evernote and convert to Markdown formats, etc. I initially wrote this for my own use, and over the course of about a year, it has become increasingly…complicated. And I’m guessing that other people might find some use with this, so I thought I’d share. (And if there are developers out there interested in this project, that wuold be great -- it's open source under MIT license). I’ve been using EVND to write my notes, but I don’t have the time or means to do more serious tests, hence I can only say the status is “Works For Me”. Since it uses AppleScript, so obviously it's OSX only. But as Evernote has similar scriptibility for OSX and Windows, so it should be very easy to extend it to support Windows, if there are developers out there interested in doing so. Demo 1 (Overview, creating notes from Atom/EVND and send to Evernote): http://i.imgur.com/fPmoN2F.gifvDemo 2 (Text formating with shortcut keys - bold, italics, highlight, underline, etc.): http://i.imgur.com/6FLTdjh.gifDemo 3 (Update note content, tags, etc. and push the changes to Evernote): http://i.imgur.com/zN5Ey8P.gifDemo 4 (Create note in Evernote, import to Atom/EVND with notelink and convert the content to Markdown, featuring lists, functioning Checkboxes, etc.): http://i.imgur.com/g6bZzN0.gifDemo 5 (Create note in Evenote, search in Atom/EVND with query string and import the target note and convert to Markdown, featuring image attachments): http://i.imgur.com/PbUf1Ss.gifDemo 6 (For a EVND & Evernote syncd note, annotate the image attachments in Evernote, and sync the changes back to EVND): http://i.imgur.com/nQVkv4H.gifMore to come...More demos (as gif animation): http://imgur.com/a/UCVGi Some features: OS X only (See Installation and Status section for more info)Local note editing: This plugin works by communicating with the Evernote OSX Client via AppleScript, so all the work is done on your local machine, no authorization required.2-way editing (…ish): (1) Edit notes in EVND or in Evernote, and sync changes… to some extend; (2) Import notes from Evernote and convert to Markdown format.Evenote meta info: notebook and tagsImages and Attachments: (1) Pasting, drag-and-drop, markdown syntax, etc.; (2) 2-way sync (get changes/annotations made in Evernote)Functioning TOC (table of contents) and footnotes: Clickable links even in Evernote client!LaTeX Mathematical Expressions with MathJax (and user-defined Macros)Icon fonts and emojisAll the regular Github-Flavored-Markdown features (links, lists, tables, etc.)Quick notes from selected text: code snippets, etc.Configurable themes for markdown rendering: Several markdown rendering themes are available to choose, you can also edit the stylesheets yourself.Auto backup and version control (with GIT)Sort & search notesExport well-formated HTMLsEnhanced Markdown editing experience in AtomSupports inline-HTML syntax highlightingSyncronized scrolling and tab switching of editor and preview panelShortcut keys for formatting text (bold, italics, udnerline, highlights, blockquotes, etc.) Please read this shared Evernote note for more info (it's best viewed in the Evernote Mac Client, you can use "Save to Evernote").
  6. Try this set myNotes to find notes "notebook:\"2014-2015 Notes\" intitle:\"" & nRef & "\""It still doesn't do the "starts with" search, but at least it should give you only results in the notebook specified. Reference: https://dev.evernote.com/doc/articles/search_grammar.php
  7. Fantastic! It works very well in Mavericks (10.9.5) with EN Mac 6.0.7. Thank you so much for all your patience and quick responses to my posts. May I make one suggestion? Instead of pasting the link, how about just leaving it on the clipboard and displaying a popup dialog to that effect? Then the user to go to the desired location and paste it, rather than having to cut and paste. Thanks again. This is a huge addon feature for EN Mac. May I request another addon? Often this need for an internal link/bookmark comes up because it was originally setup as part of a real web page. Would it be possible to select a group of lines (like you would have in an internal TOC for a web page), and then convert them to the proper links needed to goto the anchors/bookmarks that, hopefully, already exist in the EN Note? Here is an example web page that contains a TOC at the top, with links to lots of anchors/bookmarks below: https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_fundamentals.html#//apple_ref/doc/uid/TP40000983-CH218-SW2 Maybe you could do a EN web clip of this page, and then convert the TOC links? So here's a piece of JavaScript code that does a bit of "TOC clean up" (gist), I tried it with a clipped note from the webpage you provided and it seems to work fine. Short story is that the script invokes a subprocess in AppleScript to obtain the HTML content of target note, goes through the html and replace all links of the form "https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_fundamentals.html#//apple_ref/doc/uid/TP40000983-CH218-SW1"to "#//apple_ref/doc/uid/TP40000983-CH218-SW1" if it finds another element that matches this link in the note, and then invoke another AppleScript subprocess to update the target note's HTML content. It should work with the two most commonly seen TOC implementation on web (one is a pair of <a> tags, the other is an <a> tag with href pointing to another element via the 'id' property). It's a command line tool (not an automator workflow). You don't need Yosemite for this, but you do need Node.JS, npm and a few node modules. Those are very popular javascript developer libraries so you should be able to find instructions on how to install them easily (this for example), if you really want to try it out. I would probably do: $ brew install node $ npm install -g temp $ npm install -g cheerio then download the en-toc-cleanup.js script and run $ node en-toc-cleanup.js <note link> with the <note link> replaced by the actual note link to your target note.
  8. Thanks. I'll give it a try. OK, I have tested on one Note in EN Mac 6.0.10 and 6.0.6, and both worked fine. FYI, I setup my Notes so that the Note I tested was NOT the first Note in the Note list to make sure that your code was using the correct Note for the "sanitizing". It worked! I'm still a bit concerned about the Note selection AppleScript code, but it worked OK in my limited testing. BTW, I renamed the Automator Service to "EN Create Bookmark" to help identify it as an Evernote service and to use the HTML "bookmark" term. Thanks again for sharing this Automator Workflow/service, and for all your help in making it work for my environment. Now that the basic code/process is working, are you open to enhancement requests? I would do them myself, but I know nothing about Ruby and the other code/scripts you used. But I would be glad to be your Beta tester. You are absolutely right about "selection". I sort of hastily scrawled the code earlier today without reading the documentation carefully. Still the code should work just fine, though. Because I put the "set currentNote to item 1 of notes of window 1" statement INSIDE an IF statement, so it will only be excuted if the frontmost Evernote window is a separate note window (which contains precisely one note). But since apparently "selection" refers to the frontmost window already, the IF statment is not necessary. I've updated the gist to reflect the change, but the workflow's behavior isn't really affected. I'll take a look at the dependencies of my scripts tomorrow before posting them. It doesn't really do the "select a bunch of lines" thing as you described, instead it runs through all links in the note and try to identify those linking to in-page bookmarks/anchors and format them so their href's start with "#", and making sure the destination has a proper <a name="label">destination text</a> tag.
  9. That's a very good idea, I missed that part about "selection" from the official document, thanks! I just updated the workflow with the snippet.
  10. Fantastic! It works very well in Mavericks (10.9.5) with EN Mac 6.0.7. Thank you so much for all your patience and quick responses to my posts. May I make one suggestion? Instead of pasting the link, how about just leaving it on the clipboard and displaying a popup dialog to that effect? Then the user to go to the desired location and paste it, rather than having to cut and paste. Thanks again. This is a huge addon feature for EN Mac. May I request another addon? Often this need for an internal link/bookmark comes up because it was originally setup as part of a real web page. Would it be possible to select a group of lines (like you would have in an internal TOC for a web page), and then convert them to the proper links needed to goto the anchors/bookmarks that, hopefully, already exist in the EN Note? Here is an example web page that contains a TOC at the top, with links to lots of anchors/bookmarks below: https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_fundamentals.html#//apple_ref/doc/uid/TP40000983-CH218-SW2 Maybe you could do a EN web clip of this page, and then convert the TOC links? The problem with leaving link in the pasteboard is... the workflow would not be able to run the "sanitizing" process as it has to happen AFTER the link is pasted into Evernote, because Evernote adds the "evernote-html-snippet://" when the link is pasted. The trouble with the "restoring TOC" idea is it would require operating on the HTML and doing quite a few modification of the raw HTML content, and I'm a bit hesitant about the idea for general users, and more imporantly, I don't think this process could be implemented as a workflow or system service easily because we would need to traverse the html and do quite a few string replacements. With JavaScripts (NodeJS + cheeriojs + AppleScript) or Ruby (rails + Nokogiri + AppleScript) or Python it's simple enough (a few short scripts), but it's kind of another long story to talk about installing dev environments, various module dependencies, etc.
  11. I don't think it's the EN 6.0.10, it's probably due to the funkyness of the workflow itself (the implementation is far from ideal). A few things to check: 1. Is the note you are editing opened in a separate window? 2. If not, is the note shown as the first item in the note list in the main window? The awkwardness comes from the fact that I don't see a easy and definite way to get "the current note in the main window" via applescript. The workflow sort of assumes that use is editing the note in a separate window, or the note list in the main window is sorted by "updated time". I've updated the workflow (gist) to include a dialog asking user to confirm that the script has the right idea about which note is being editing currently.
  12. This workflow just doesn't seem to want to work for me. Your alternate version (no ruby) doesn't work either. It fails with a Javascript error. Apparently the Automator "Run Javascript" is a new Action added in Yosemite. I'm running Mavericks. Here's the Automator error msg: Sorry to be so much trouble. Any suggestions on what to do next? My bad again, totally didn't think of compatibility issues. I re-wrote the workflow in AppleScript which should be supported in Mavericks (I think? I don't have access to a Mavericks machine at this moment so I cannot verify) and updated the gist. Would you be interested in trying it out?
  13. Thanks for the fix. Before I try it, I had an idea I want to ask you about. I read in your ReadMe that "Since the Evernote client will automatically add evernote-html-snippet:// to links with href starting with #, use applescript to scan the whole note and get rid of all these redundant strings". What do you think about using "file:///" prefix? So, the link would be: <a href="file:///#label-text">Link text</a> Would that prevent the EN client from adding the "...snippet://" prefix? Well, yes, it would indeed prevent EN client from adding "evernote-html-snippet://", but it still wouldn't work. Because then Evernote removes the link all together (assuming we are using the general clipboard/pasteboard). Or, even if we successfully insert the link with "file:///#label-tet" (using the `pasteboard` ruby gem to specifically formulate data in pasteboard), clicking on the link will take you to Finder and will try to locate a file on your system. This is because links starting with "file:///" is supposed to point to a local file (wiki), and in OSX the default handler application for "file:///" is the Finder. Theoretically it's possible to change the handler, but I don't think that is easy or makes sense.
  14. It seems that I'll have to specifically format the clipboard/pasteboard data to type 'com.evernote.ce.raw' to avoid this behavior. I can sort of see the logic behind this, but I still don't see any obvious benefits, and it makes creating in-note "jump" links a lot more difficult than it should be. I haven't found many simple ways for formulating clipboard data to a specific type or anyway to suspend this behavior, any recommendations? Related discussions: Create jump links in your notes with ELIN! Wikify (Evernote Wiki-Helper)
  15. What do I do now? Thanks for your help. Well apparently I did not take into consideration that most people would not have xcode and other dev dependencies installed, my apologies... So I made an alternate version that does not require any ruby gem... Would you mind giving it a try? It's not quite as smooth as the original one (you won't be able to easily undo the operation, etc.) but the basic functionalities are the same.