Jump to content

Search the Community

Showing results for tags 'applescript'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Community Announcements
    • Evernote General Discussions
    • Evernote Integrations
    • Evernote Betas
    • Evernote API Discussion
  • FAQ's: Best Answers
    • FAQ's: Best Answers
  • Possible Bugs/Technical Issues
    • General Technical Issues
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Web Client
    • Evernote Product Suite
  • Product Feedback/Feature Requests
    • General Feature Requests
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Evernote Web Client
    • Evernote Product Suite
  • Evernote Forum Archives
    • Using Evernote
    • General Discussion Archive
    • Product Archives
  • Web Clipper***
  • International Forums
    • Japanese Discussions
    • Brazilian Portuguese Discussions
    • Discussions in Spanish
    • Korean Discussions
    • Traditional Chinese Discussions

Blogs

There are no results to display.

There are no results to display.

Categories

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Subscription

Found 102 results

  1. These scripts scratched an itch I had to be able to (1) write in Markdown and save it to Evernote as clean HTML and (2) get the text of an Evernote note in Markdown format. There is one script per function. The requirements are few but important. For the Markdown2Evernote script, you will need MultiMarkdown already installed. If it's installed, it should be in "/usr/local/bin/multimarkdown". For the Evernote2Markdown script, you will need the html2text python script. If you have Brett Terpstra's Markdown Service Tools, you can find the code for this script inside of the "md - Convert - HTML to Markdown" Service. Copy the code and save it as a Python script. Or, you can simply download the script here: http://www.aaronsw.com/2002/html2text/html2text.py . Once you download or save the script, you MUST change the second to last line to data = sys.argv[1].decode('utf8'). This will allow the Applescript to pass input via the "do shell script" command. If you don't change the input line in the python code, the Applescript won't work. The Markdown2Evernote script will accept text from the clipboard. This text can begin with 3 types of Metadata: Title, Notebook, and Keywords. For example, Title: This is my title Notebook: Inbox Keywords: tag1, tag2 These metadata types can be substituted with "#", "=", and "@". For example: # This is my title = Inbox @ tag1, tag2 If you don't insert this metadata, the script will title the new note with the data and put it in your default notebook without any tags. The script takes the Markdown-styled text from the clipboard, extracts the metadata (if it's there), converts it to HTML, and creates a new HTML Evernote note. You can find the script here: bit.ly/1aKzVN2 The Evernote2Markdown script will take your currently selected Evernote note and use the html2text script to convert it to Markdown. It will also create a new folder (if it doesn't exist) entitled "Evernote_Markdown_Notes" inside of your Documents folder. It will then create a .md text file with the title of your Evernote note and save it to that folder. Finally, the script will open that .md file in your text editor of choice (simply change the myTextEditor property at the start of the script). For the script to function properly, be sure you change the html2text property to the file path to that script. The property is predefined as "/Users/[username]/Path/to/html2text.py", which is obviously useless. You can get the Applescript here: http://bit.ly/1bgAPeW For those of you who love Markdown and Evernote, these scripts might be of help. stephen hackademic.postach.io
  2. Hi, newbie AppleScript question: I'd like to export the contents of a single designated note to a plain text file. (With GeekTools I'll then display that file on my desktop.) For selecting the designated note, the Evernote note that contains my to do hot list has a unique tag that no other notes use. I've searched and found some lengthy AppleScripts on the forums for much more complex operations -- such as exporting many notes to RTF or HTML in subfolders -- but my attempts to modify them haven't been successful and the Evernote AppleScript dictionary contains only the commands and no examples of implementation / no tutorials. Evernote says they don't support helping premium users with this type of simple programming but suggested maybe someone in the developer forums might help. Hoping someone either has specific code or can give me some links to tutorials / examples that are very simple for selecting a specific note, selecting it's contents, writing this to a file, etc. Thanks!
  3. Hi Evernoters, I've been using OpenMeta tags to organize files for a few years, so figuring out how to automate importing those files with tags intact was a big prerequisite to starting to use Evernote as my primary file bucket. I adapted a few scripts I found here in addition to the OpenMeta CLI and Noodlesoft's Hazel and came up with a system that works pretty well. If you're interested, I made a post explaining the process here: http://www.n8henrie.com/2012/06/converting-openmeta-tags-to-evernote.html It took me a few days to get working correctly, so I figured I should share and perhaps save some of you a bit of time and effort if you're looking to accomplish the same.
  4. Hello all, I have been trying to see if I could code an Applescript to do the folding in a loop, but I have not done enough with Applescript to build it. I'm hoping that someone could help. I would like to take a group of folders or a single folder (while loop) and make a new note based off the folder name, then import all the files in the folder into the note it made from the folder name, then keep doing this to all the selected folders. If anyone one has some code that I could look at this would greatly help. Thank you, Kyle
  5. To scratch an itch I had, I wrote a couple of Applescripts to automatically generate Index Notes. Index Notes contain a list of all of the notes for a particular criterion in which every note title is a hyperlink to that note. I wrote one script to create an Index Note of a notebook. When run, it offers you a list of all of your notebooks, you select the one you want and it creates a new note in that notebook with hyperlinks to all of the other notes in that notebook. The second script generates an Index Note for a particular tag. When run, it offers a list of all of your tags, you select one and it creates a new note in your default notebook with hyperlinks to all of the notes that have that tag. You could put these Index Notes in your Shortcuts section to create a new level of organization and access to your notes. I've written up a bit more on the scripts here: http://bit.ly/19dqP7f You can also find links to download them there. Hope this helps someone else besides me. stephenhttp://hackademic.postach.io/
  6. Like many users (I imagine), I initially fell in love with Evernote and its ability truly to be my external brain. I have used it extensively this year (my first year of grad school). However, I began to flirt with alternatives in the wiki-verse because I really love the idea of what I call organic horizontal organization; that is, a form of organization at the base level of notes (or pages, or documents, or what ever you call your base note form) that is interconnected among itself, creating an inter-locking, inter-linking web. This is the true power of wikis. As a Mac user, I worked with Voodoopad for a while. Although I loved to no hassle page linking (simply type a WikiWord and a new page is created; if a page exists and you type its title somewhere, it is automatically linked), I did not love the Interface. Specifically, I felt it greatly lacked a means of powerful Vertical Organization; that is, the nested organization with multiple levels seen in Finder, for example. This was always one of my favorite aspects of EN as well, with the Stacks and Notebooks. Another issue for the personal desktop wiki program was the cumbersomeness of external linking. While it was almost magical how easily Voodoopad linked to voodoopad pages, it was quite the hassle to link to external files. I was particularly frustrated by this fault because I take advantage of numerous apps now creating their own custom URL schemes to create an inter-linked knowledge base across my various applications. In struggling to automate external link creation in Voodoopad via Applescript, I stumbled across Markdown (I'm late to the game, I know). While I had seen simply Markdown syntax before (# for header, etc), I had not seen the Markdown linking syntax. It is quite simple, and being plain text, easily automated. Unfortunately, while Voodoopad can export its documents from Markdown to HTML, it cannot easily view Markdown as HTML within the program. Thus my cross-app links look quite ugly (i.e. The script below will take the text of an EN note, search for WikiWords, and create new notes with those WikiWord titles. It will then retrieve the note links of these new notes, create Markdown formated [title](link) entries for each, and replace them in the text. One then merely pastes into Markable and exports to EN. With this script, you can write a new note, put in WikiWords as you wood in a personal wiki and it will generate new pages if necessary and link to all pages with WikiWord titles. The script currently creates all new notes in a new Notebook that is named the original note title. Each note you write thus becomes an Index Page (in Voodoopad speak) for its sub notes. While the script doesn't quite create the fluidity of a personal desktop wiki (finishing typing a word and it links), it does create a very fluid wiki-like experience in EN (tests run appr. 3 seconds). This script is definently a beta. And I am an Applescript noob, so I doubt it is the most efficient. But it works quick enough for me. Any additions or alterations are welcome. I would love to add soon an AutoLinking function (a la Voodoopad's automatically link to a page if you type the page title), as well as migrate away from the third-party app Markable to get from Markdown to Evernote. But, as it stands, this script will Wikify your Evernote. Script is here (the forum won't currently let me attach a script file to the post, sorry). (* Wikify Evernote Applescript -- Stephen Margheim -- open source this script take the selected note and treat it as the Index Page for Wiki-Style sub-pages created in a seperate Notebook that is entitled the same as your Note. It uses WikiWords and [bracketed] words as the base for the newly created notes. NOTE: You may either type WikiWords or [bracketed] words, but multiple words within brackets (i.e. [multiple words]) will create 2 notes: "multiple" and "words". The script functions by [1] turning the content of the selected EN note into plain text, [2] searching that text for WikiWords and placing [brackets] around them, [3] extracting all terms that are contained within [brackets], [4] creating a new Notebook in EN (if necessary) with name of selected note, [5] searching EN for existing notes with titles of the [bracketed] terms, a "Wiki" tag, and placed in the newly created Notebook, [6] creating all necessary notes in the new Notebook, [7] getting the note links of all the notes in that new Notebook, [8] putting the note name and note URl together in Markdown format, [9] putting [brackets] back around the note titles, [10] creates 2 lists: one, of [bracketed] note titles (which were WikiWords and [brackets] in original note); and two, of Markdown formatted note titles and note links, [11] removes any duplicates from lists, [12] sorts both lists so that they are in the same order, [13] finds [bracketed] terms and WikiWords in original notes and replaces with Markdown formatted [Note Title](Note Link), and finally [14] exports new text to Markdown editor for Evernote, Markable. At this point the user must manually export the Markdown text to Evernote as HTML (very important, and not currently the default setting). Currently, exporting to EN opens dialog box with Notebooks--navigate to notebook with original note--and then to the notes in that Notebook--navigate to the original note--and update. A bug in the current version of Markable renames the orifinal EN to "Unsaved" if the Markable document is not saved in the program. I have seen Ruby scripts online to push Markdown to EN, but have yet to explore how best to integrate them into this script. I am sure it is easy, and would get rid of the manual export in Markable (as well as the current bugs). So if anyone wants to embed those Ruby scripts, feel free. I would love that. I note upfront that this is cobbled together from numerous other scripts and handlers; some altered more than others. I have attempted to note original authors for sections of the script throughout, but I haven't slept much, so I'm not certain that I didn't miss a few. *) --get selected note tell application "Evernote" try set Evernote_Selection to selection if Evernote_Selection = {} then display dialog "Please select the note to Wikify" end if set noteName to (title of item 1 of Evernote_Selection) end try --get plain text of note; from Justin's Veritrope script set the_HTML to HTML content of (item 1 of Evernote_Selection) set plain_Text to do shell script "echo " & quoted form of the_HTML & space & "| textutil -convert txt -stdin -stdout" end tell set the clipboard to plain_Text Wikify() set Bracketed_text to the clipboard tell application "Evernote" set Evernote_text to the clipboard end tell extractBetween(Evernote_text, "[", "]") set Bracket_list to the clipboard set BracketLater_list to get words of Bracket_list --search for and create notes from above list tell application "Evernote" set tid to AppleScript's text item delimiters set Wiki_list to the clipboard set Wiki_list_count to (count words of Wiki_list) as number if (not (notebook named noteName exists)) then make notebook with properties {name:noteName} end if set notebook1 to notebook noteName set notebook_search to name of notebook1 set i to 1 repeat with i from 1 to Wiki_list_count set Wiki_word to word i of Wiki_list set matches to find notes "intitle:" & Wiki_word & " " & "tag:Wiki" & " " & "notebook:\"" & notebook_search & "\"" if matches = {} then set Wiki_note to create note title Wiki_word with text "" notebook notebook1 if (not (tag named "Wiki" exists)) then make tag with properties {name:"Wiki"} end if set tag1 to tag "Wiki" assign tag1 to Wiki_note end if if (i > Wiki_list_count) then exit repeat end if end repeat --All sub notes are now created with appropriate tag and title --Next, synchronize to get note links for all wiki notes set noteLink to missing value repeat until isSynchronizing is false end repeat synchronize delay 0.1 end tell delay 1 --to ensure that the sync is complete before querying for note links (have had "missing value" returned with smaller delay. If you have a larger note, you may need to up the delay here to get all your note link data below --get note links for all wiki notes tell application "Evernote" set theNotebook to notebook notebook_search set Evernote_Selection to every note of theNotebook set wikiLinks to {} set the clipboard to "" repeat with i from 1 to the count of Evernote_Selection set noteURL to note link of item i of Evernote_Selection set noteName to title of item i of Evernote_Selection set theWikiLink to "[" & noteName & "]" & "(" & noteURL & ")" & return set the clipboard to (the clipboard) & theWikiLink end repeat set WikiLinks_list to the clipboard end tell delay 0.5 --another safety-valve to ensure EN is caught up with our quick data retrieval --put [brackets] back around the terms from the earlier list that created the new EN notes above; for find and replace later set NewBracket_list to every item of BracketLater_list set the clipboard to "" repeat with i from 1 to the count of NewBracket_list set itemName to item i of NewBracket_list set theBracketName to "[" & itemName & "]" & return set the clipboard to (the clipboard) & theBracketName end repeat set NewBracket_list2 to the clipboard --this variable has a simple string of your WikiWords set Bracket_list2 to get paragraphs of NewBracket_list2 --this variable puts bracketed text string into list form set WikiLinks_list2 to get paragraphs of WikiLinks_list --this variable takes your list of Wiki-Markdown links and puts into list form --delete any duplicate WikiWords in your note from the List set this_text to Bracket_list2 set FinalBracketList to my remove_duplicates(this_text) --sort both lists to get in indentical order set Sorted_FinalBracketList to my simple_sort(FinalBracketList) set Sorted_WikiLinks_list2 to my simple_sort(WikiLinks_list2) --find and replace [bracketed] terms in the text with Markdown [title](link) set the_string to Bracketed_text set search_strings to Sorted_FinalBracketList set replace_strings to Sorted_WikiLinks_list2 set ListNumber to the (count of search_strings) as number set OldDelims to AppleScript's text item delimiters set the clipboard to "" repeat with i from 1 to ListNumber set AppleScript's text item delimiters to item i of search_strings set newText to text items of the_string set AppleScript's text item delimiters to item i of replace_strings set the_string to newText as text set the clipboard to the_string set AppleScript's text item delimiters to OldDelims end repeat set FinalText to the clipboard --this says it all! --Send Markdown text to Markable tell application "Markable" activate activate end tell tell application "System Events" keystroke "a" using {command down} keystroke "v" using {command down} end tell (* Here, the user must manually export to EN. Note the Preview in Markable. Ensure text is sound. To export, go Export -> Save To Evernote. Dialog box opens with list of your Notebooks. At bottom is choice between "Format: Markdown [or] HTML". Markdown will be selected. Select HTML. Then select your Notebook, and navigate to the original note. Save and return to EN to sync. If title is renamed to "Unsaved", be sure to re-rename it to its original title. Hopefully, if someone else can fit this into the Ruby shell, these issues will likely dissolve by circumventing Markable*) (* SUBROUTINES *) --Wikify handler from Fridemar Pache on Wikify() considering case set clb to the clipboard as text if clb = "" then exit repeat end if set UpperCaseChars to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" set LowerCaseChars to "abcdefghijklmnopqrstuvwxyz" set Digits to "0123456789" set WikiWordChars to UpperCaseChars & LowerCaseChars & Digits set countClb to (count characters of clb) set i to 1 set currentChar to character i of clb set wikifiedText to "" repeat while i ≤ countClb -- a substring before a wikiWord repeat while i ≤ countClb set possibleWikiWord to "" set CamelCaseCount to 0 if (currentChar is in UpperCaseChars) then exit repeat end if set wikifiedText to wikifiedText & currentChar set i to i + 1 if (i > countClb) then exit repeat end if set currentChar to character i of clb end repeat -- possible WikiWord repeat while (i ≤ countClb) set possibleWikiWord to possibleWikiWord & currentChar if currentChar is in UpperCaseChars then set CamelCaseCount to CamelCaseCount + 1 end if set i to i + 1 if (i > countClb) then exit repeat end if set currentChar to character i of clb if not (currentChar is in WikiWordChars) then if CamelCaseCount ≥ 2 then set WikiWord to possibleWikiWord set wikifiedText to wikifiedText & "[" & WikiWord & "]" exit repeat else set noWikiWord to possibleWikiWord set wikifiedText to wikifiedText & noWikiWord exit repeat end if end if end repeat end repeat set the clipboard to wikifiedText end considering end Wikify --Search with brackets handler from Yvan Koenig to extractBetween(SearchText, startText, endText) set tid to AppleScript's text item delimiters set AppleScript's text item delimiters to startText set liste to text items of SearchText set AppleScript's text item delimiters to endText set extracts to {} repeat with subText in liste if subText contains endText then copy text item 1 of subText to end of extracts end if end repeat set AppleScript's text item delimiters to " " set extracts to extracts as text set the clipboard to extracts set AppleScript's text item delimiters to tid end extractBetween --handler from Qwerty Denzel on MacScripter on remove_duplicates(this_text) set not_list to class of this_text is not list if not_list then set this_text to paragraphs of this_text set new_text to {} repeat with this_line in this_text if this_line is not in new_text then set end of new_text to (contents of this_line) end repeat if not_list then set text item delimiters to return tell new_text to set new_text to beginning & ({""} & rest) set text item delimiters to "" end if return new_text end remove_duplicates --from www.macosautomation.com on simple_sort(my_list) set the index_list to {} set the sorted_list to {} repeat (the number of items in my_list) times set the low_item to "" repeat with i from 1 to (number of items in my_list) if i is not in the index_list then set this_item to item i of my_list as text if the low_item is "" then set the low_item to this_item set the low_item_index to i else if this_item comes before the low_item then set the low_item to this_item set the low_item_index to i end if end if end repeat set the end of sorted_list to the low_item set the end of the index_list to the low_item_index end repeat return the sorted_list end simple_sort
  7. Like many users (I imagine), I initially fell in love with Evernote and its ability truly to be my external brain. I have used it extensively this year (my first year of grad school). However, I began to flirt with alternatives in the wiki-verse because I really love the idea of what I call Organic Horizontal Organization; that is, a form of organization at the base level of notes (or pages, or documents, or what ever you call your base note form) that is interconnected among itself, creating an inter-locking, inter-linking web. This is the true power of wikis. As a Mac user, I worked with Voodoopad for a while. I was excited to text the power of a personal wiki to really utilize both Internal (within the program) and External (to other programs files) Links. Although I loved to no hassle internally linking to other Voodoopad pages (simply type a WikiWord and a new page is created; if a page exists and you type its title somewhere, it is automatically linked), I did not love the Interface. Specifically, I felt it greatly lacked a means of powerful Vertical Organization; that is, the nested organization with multiple levels seen in Finder, for example. This was always one of my favorite aspects of EN as well, with the Stacks and Notebooks. I also found it cumbersome for External Linking. While it was almost magical how easily Voodoopad linked to voodoopad pages, it was quite the hassle to link to external files. I was particularly frustrated by this fault because I take advantage of numerous apps now creating their own custom URL schemes to create an inter-linked knowledge base across my various applications. In struggling to automate external link creation in Voodoopad via Applescript, I stumbled across Markdown (I'm late to the game, I know). While I had seen simply Markdown syntax before (# for header, etc), I had not seen the Markdown linking syntax. It is quite simple, and being plain text, easily automated. Unfortunately, while Voodoopad can export its documents from Markdown to HTML, it cannot easily view Markdown as HTML within the program. Thus my cross-app links look quite ugly. Evernote, however, presents HTML notes beautifully. So I wrote two Applescripts to create Wiki-like functionality within Evernote. The essential tools Applescript and the Markdown2Evernote command for TextMate (which can also be a Service for any text editor. More information here (http://blog.timlockridge.com/blog/2013/02/03/using-textmate-and-markdown-with-evernote-configuring-a-workflow/) and here (http://nsuserview.kopischke.net/post/6223792409/i-can-has-some-markdown). Other than that, the scripts run text manipulations and Evernote searches to get what I want. My goal is to mimic the key functionality of Internal Linking in personal wiki programs: [1] to autolink to new notes that are created without having to leave the current note [2] to autolink to pre-existing notes without having to leave the current note Each script performs one of these functions. In the future, I will try to combine them into one autolinking script. I have initial versions of both scripts in the Developer's section of the forum (http://discussion.evernote.com/topic/38682-wikify-evernote-via-applescript/). But I wanted to give as many people access as possible. Plus, I updated both scripts. I have attached both scripts as .txt files below. I would love for people to test them and see how they work. They have detailed preambles that explain what they do and how to get them to work, but I will replicate the essential details here. [1] To autolink to new notes: This script take the selected note and makes it an Index Page for Wiki-Style sub-pages created in a seperate Notebook that is entitled the same as your Note. It uses WikiWords and [[bracketed]] words as the base for the newly created notes. To use, you simply type up a note and put in WikiWords or a term in [[double brackets]]. When the note is finished, run the script, and you will now have an Index-like note with in-text links to new notes in a new notebook with your notes title. NOTE: You may either type WikiWords or [[bracketed]] words, but multiple words within brackets (i.e. [[multiple words]]) will create 2 notes: "multiple" and "words". [2] To autolink to pre-existing notes:This script searches for matches in the current EN note to pre-existing Wiki notes and links to them. This can work because the previous script assigns the tag "Wiki" to every note it creates. Thus, all of you notes that are apart of your Wiki web can be searched specifically. It thus mimics the autolinking functionality of personal wikis, such as Voodoopad. To use, you simply either type up a note or go to an existing note and run the script. NOTE: For the script to work best, I would highly recommend that you create Unique Titles for your Wiki notes. Although Evernote allows this, it mucks up the precision of this process if you have two notes (for example) that are both titled "WikiWords" and have the tag "Wiki". This could easily happen if you run the first script on two separate notes, both of which contain the term "WikiWords". You would then have two notes in two notebooks with this title. To combat this, in the future, I hope to combine both scripts and run them such that new notes with the same title are not created. Notes and warnings aside, these two scripts can help you to Wikify your Evernote. Wikify Evernote_autolinking to existing notes v.2.txt Wikify Evernote_autolinking to new notes v.2.txt
  8. Hello again community, I have to say that I find the veritrope applescript one of the most important things on how I use Evernote and can highly recommend. (If you find this topic and not seen it go here: http://veritrope.com/code/outlook-2011-to-evernote/). The problem is I updated GROWL notification last night and now it fails and I get an error message back from growl. The error is "Growl got an error: Can't continue notify". Anyone come across this and have a solution? Thanks
  9. Does Evernote have the abiility to scan a collection of notes for a certain text string and display only the lines containing that string rather than a list of all the notes with that string? Evernote has the ability to filter Notes based on tags but I would like the ability to fiter lines / paragraphs within notes using tags or keywords. Some programs such as Circus Ponies Notebook, Things, and Folding Text have similar funtionality but I would like to to use one app rather than many and I think this is Evernote's aspiration, too. I think I use Evernote the way a lot of people use it. I take notes on work projects and store them iin note pages withIn one or more notebooks. Meetings notes are typical example. A single Meeting Note entry contains multiple paragraphs -- some of which I'd like to tag on the fly and later see in a single list. A single note might contain tags I've created for all of my work colleagues. (@Rick, @Scott, @Barbara, etc.) These tags are present in many separate notes. The next time I talk to Rick, I'd like to scan through all of my notes using the @Rick tag and see only the individual paragraphs with his tag, not the entire list of Notes containing that tag and have the ability to edit the tag (or add another tag) to remove it from the next scan. Can Evernote do this now or does anyone know of an Applescript that can do this? Thanks SCC
  10. When I move a note from one notebook to another via Applescript, I see the new location in the notebook popup of of moved note. Also the number of notes in the notebook pane changes accordingly. But when I select the destination notebook in the notebook pane, the moved note is not there. Instead it still shows up in the original notebook. This cannot be fixed with a sync or a shutdown/restart of the client. In the web interface, the note is displayed in the correct notebook after a sync. Would be nice, if you could fix this and/or give me a workaround how to update the client's notes index manually if possible. Pete
  11. Hi all, Hoping one of you Evernote/Applescript gurus can help out here as Im getting desperate! Thought I'd be able to achieve this in automator, but probably not after all… The issue: I have been using a finder folder structure to locally store loads of stuff Ive scanned in over time. I started uploading the items to Evernote for the OCR and easy search. For each file uploaded (all to the same notebook) I've used the names of all the folders it belongs to as the tags for that item. So if the following file was located in the finder as: Home/Documents/Evernote/House_stuff/plans/File1.pdf Then I would manually upload it to "Notebook1" and tag with "Evernote", "House_stuff" and "plans". The only issue was that I was running into the upload limit - as a result I haven't done it for ages and now I have an enormous backlog of files to sort out and upload. I have however helpfully "tagged" each file that hasn't yet been uploaded by preceding them with a `. So, I have loads of files stashed away deep in folders like: Home/Documents/Evernote/House_stuff/plans/ `File1.pdf I am guessing that this would be a task ideally suited to automation via AppleScript - unfortunately , I have only got a rudimentary knowledge! Can anyone help please?!! The workflow would be: - starting at the Evernote folder level, search inside all the folders and subfolders for all files preceded with a ` - once found, upload to notebook1 (minus the preceding ` character) and tag with all relevant folder names as described above - rename the original, local file to remove the preceding ` so it is clear that it has been uploaded - ensure that the upload limit is not going to be breached before each upload to avoid issues! Anyone up for the challenge? Would really appreciate some pointers if anyone can help. Many thanks, Rich.
  12. I would like to find a better way to clip discontinuous strings of text from web articles to a single note in Evernote -- one note contains all text clippings from the article rather than a single note for each that later need to be merged. I want this to help summarize articles. Ideally, I'd like to invoke a keyboard shortcut to copy selected text and paste it to the bottom of an open note in Evernote in a single step and without interrupting my reading. Does a tool to do this already exist? Is there a publicly available Applescript that does this? ScottC
  13. I just updated to 5.0.2 and now my applescripts stopped working. Here's an example of how to reproduce the error: tell application "Evernote" set sel to selection repeat with _note in sel set _tags to tags of _note end repeat end tell I get this error: error "Evernote got an error: AppleEvent handler failed." number -10000
  14. I've created an Applescript to export all the PDFs I have in an EN notebook to an archive folder on my Mac. I've got it working for all the existing notes I have, but as I add new ones, I want it to archive those as well with an Applescript that would run once a day. The problem is in determining what notes are new. I can't simply archive everything with today or yesterdays creation date since I modify the creation date of notes I add (eg when I add a receipt, I change the creation date of the note to match the one on the receipt). A few things I considered include: Having the script add an "Archived" tag to each note after it exports the PDF, but then finding new notes would require the ability to search for all notes that DON'T have the "Archived" tag, and I can't see how to do that. If I used the "Archived" tag option, I also considered finding every note in the notebook, then finding every note with the "Archived" tag, then comparing the two lists and returning the differences, which should be every note that doesn't have the "Archived" tag, but my Applescript skills don't seem to be up to the task (I'm a "copy and paste" programmer, but learning). I could of course manually add a tag to every note I create, and then have the script remove it after an export, but that leaves too much room for user error. Anyone have suggestions on how to accomplish my task?
  15. Just read this article and thought some of you EN Mac users might be interested: Send Keynote presenter notes to Evernote with AppleScript I haven't installed or tested it, so proceed with due dilligence and caution. While this script is specifically for Apple Keynote, it might be used to create your own script that works with other software/file formats like Microsoft PowerPoint.
  16. When adding a new (i.e. non-existing) tag to an EN note my Mac starts the tag in upper case. Recently I decided recently to use only lower case tags. Is there a way in AppleScript to bulk rename the existing tags to lower case? How can i prevent my Mac from creating tag(s) starting in upper case?
  17. Is there any ability with Applescript to walk through evernote and assign higher level tags in a hierarchy? For example, if I have the following tag structure - TagA - - Tag 1 I would like to set up a script that would assign TagA wherever Tag1 is assigned.
  18. Hi, I'm trying to automate a couple of processes that would results in new Evernote notes based on URLs. Anyways it looks like in the following code nnote is the missing value (instead of pointing to the newly created note): set nnote to (create note from url tabURL notebook notebookName tags tagList) In the following code tnote is correctly pointing to the newly created note: set nnote to (create note from url tabURL notebook notebookName tags tagList) Is there any workaround for this behavior? I can imagine something like introducing a delay, searching for the note using the original URI and then making any changes on that. Is this the only way?
  19. What does the script do? This script examines the tags for the selected notes in Evernote. For each tag it then traverses the Evernote tag tree all the way up to the root ultimately replacing the tag with all the tags along its path. Say, for example, a note is tagged with "apple". Also say that the tags are organized as follows: plant food fruit apple fuji honeycrisp red delicious pear bartlett d'anjou vegetable greens chard lettuceRunning Taggify Evernote on that note will result in the tag "apple" being replaced by the tags "plant", "food", "fruit", and "apple" sorted alphabetically. By the way, as the program runs it counts off the notes so you have some idea of how far along it has worked. You can adjust this by modifying the properties below. Why would I want to do this? Two reasons: If you structure your tags hierarchically, and then apply all the tags along a path, you can search for tag:fruit for example and get any note with the tags apple, fuji, honeycrisp, red delicious, pear, bartlett, or d'anjoy. It saves you from having to manually enter all the tags along a path. Disclaimer: I offer this script as-is and make no guarantees that it will do what you want. Although I have tested it extensively and use it on a daily basis, you may discover a bug I didn’t catch. Start out using it on a single note. Feel free to use the code as a basis for your own scripting work. Taggify Evernote.scpt.zip
  20. I'm having an issue with PDF notes that I've tagged and imported via AppleScript. On the left hand tag frame, these new notes will update the note count, but do not appear when you filter by a tag. I have two work-arounds to have the notes display under such a tag: Open the note, remove the tag, re-type it, close the note Temporarily rename the tag and then rename it back The problem with these work-arounds is that I have to recognize that not all notes are showing before I can correct it. It doesn't help me with the notes I don't know are missing. This means that I can't trust that Evernote is giving me accurate search or tag filter results for note counts that exceed a simple visual inspection (~10 notes). Has anyone experienced this issue? Evernote Support says they don't support Evernote AppleScript-related issues. Anyone know how I can write an AppleScript to rename all Evernote tags automatically and then back? In the interest of full disclosure, here's the workflow: I drop a file into a folder that Hazel watches for new PDF/DOC/HTML/TXT files Hazel sends it to my Evernote import script AppleScript does the following: Convert all other file types to PDF Create the Evernote note with or without a pre-determined title (without uses the filename) Convert any existing OpenMeta tags to Evernote tags (This helps me get away from Yep to Evernote) OR Tag the PDF based on the filename using a list of pre-determined tags Trash the original Issue mainly happens with PDFs as original source file because I predominantly import PDFs It doesn't always happen It seems to only happen to certain tags, but not exclusively It's not repeatable with the same file. If I delete the note, import it again, the note displays under the tag filter properly. Thanks!
  21. This page has a handy AppleScript that you can use to auto-send tasks to Evernote. Just change the email address in the script to your "send to Evernote" email address and you're set. The site has a full description, but basically you add an iCal event to a specific Calendar for a specific date/time. When that time is reached, the script will email you the details. Useful for those, like me, that are starting to use EN for just about everything.
  22. I've posted some of my scripts to this board in the past several months, and have started to gather them together into a place on github. Right now I have four uploaded: A "create notes based on template" script A "tag multiple notes" script A "add to the title of multiple notes" script (I know some people use title keywords a lot, this ought to make their lives simpler) and a "tag by tag group" script. In this one, if you find yourself using the same tags over and over again for certin kinds of notes, you can create a "tag set" so you don't have to remember it. Once a set is created, it can be used to tag multiple notes. I use this so I get the best of both worlds: broadly reusable tags, but tag sets that provide a lot of specificity. These can all be downloaded from https://github.com/g...plescript_utils. Please let me know if these are useful or if you find bugs.
  23. Hey friends, A few folks have asked about when the Mac client is going to get a word count feature (similar to what's available in the Windows client). As I understand it, this is a planned feature for the Mac client. In the meantime, though, I wrote a very simple AppleScript to count the words in a note; it's attached to this post available for download here. The typical caveats apply — this isn't an officially supported thing and it might eat your dog (not really). I'm posting it here in case anybody finds it useful. Enjoy
  24. After some searching and not finding how to import all my existing instapaper articles I decided to work it out. Warning: This worked for me but use at your own risk. I can't see what might go wrong but you never know. Please note, depending on the amount of Instapaper items you may need a Evernote premium account if you wish to make all your articles synced. The script will parse each URL from your Instapaper account though Instapaper Mobalizer before adding it to your Evernote notebook to tidy things up a little. The page title of the website becomes the note title. I have included the details of the process over on my blog http://www.wikinixi.com/?p=148 but to summarise you do the following:- Export a CSV file of all your instapaper articles. Create a txt file containing all the URL's Run the text file through an applescript that will mobalize your articles before inserting in to evernote. Please let me know your thoughts.
  25. Is there a way to use AppleScript to query and access notes in a notebook that has been shared to me by someone else? On one hand, when I use "find notes", Evernote only returns results from outside the shared notebook. On the other hand, if I run "get selection" (or "find note" in v3.0.5) it can return a note from the shared notebook as a result. So the interface is clearly able to retrieve notes from shared notebooks, but it's not at all clear if we can get a complete list and/or a search-filtered list of notes from a shared notebook without having to know the note link or relying on the note to be selected. I've searched high and low in the documentation, the forum, and the interwebs for clarity around how this works and would appreciate any pointers folks could offer.
×
×
  • Create New...