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. Here is a script for a years list of notebooks and notes property theMonths : {"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"} property theWeekdays : {"SAT", "SUN", "MON", "TUE", "WED", "THU", "FRI"} tell (current date) to set referenceDate to (it - (its day) * days + days - (its time)) set thisYear to year of referenceDate set yearList to {} repeat with i from 1 to 11 set end of yearList to (thisYear + i - 6) as string end repeat (* Fill year list with the previous 5 years followed by the next 5 *) set chosenYear to (choose from list yearList with prompt "choose a year") as string if chosenYear is "false" then return (* set variable choosenyear to year picked from menu*) set year of referenceDate to chosenYear repeat with aMonth from 1 to 12 set month of referenceDate to aMonth set monthnotebook to text -2 thru -1 of ("0" & aMonth) & space & item aMonth of theMonths set currentWeekDay to weekday of referenceDate as integer set dayList to {} repeat with aDay from 1 to (daysInMonth for referenceDate) set end of dayList to "/" & (text -2 thru -1 of ("0" & aDay) & "/" & chosenYear & space & "-" & space & item ((currentWeekDay mod 7) + 1) of theWeekdays) set currentWeekDay to currentWeekDay + 1 set AppleScript's text item delimiters to "," end repeat repeat with the_item in dayList tell application "Evernote" create note title (aMonth as text) & the_item with text (aMonth as text) & the_item notebook monthnotebook end tell end repeat set {TID, text item delimiters} to {text item delimiters, ","} set dayList to dayList as text set text item delimiters to TID tell application "Evernote" if (not (notebook named monthnotebook exists)) then make notebook with properties {name:monthnotebook} end if end tell end repeat on daysInMonth for theDate -- returns an integer copy theDate to d set d's day to 32 32 - (d's day) end daysInMonth
  2. Opened ticket #865465. If you execute this AppleScript (which is a very simplified version of a script I use all the time as part of a quick-journaling thing I wrote), then (null) appears above the first text. Didn't happen in 5.5.2: tell application "Evernote" set theNote to create note with text "" title "Test note" append theNote html "<h2>Heading</h2><p>Text</p>" end tell You get: Also happens to show off the block formatting bug.
  3. Hi Everyone, I've created a new (bash) script to automate the filing of documents to Evernote in the background with support for Mac OS X tags – I'm calling it Everfiler. The benefits of this script over other solutions I've found is two fold: I can deal with a file once (not once in Finder, once in EN) as I add tags when saving the file in Finder The file upload to EN happens in the background (via email) and doesn't take over my computer It is designed to be used with Hazel (http://www.noodlesoft.com/hazel.php) and/or Apple's Automator but I'm sure someone could adapt it to work with other apps. Download I'm releasing it into the wild so others can benefit from it and even improve on it. You can download the script at: https://github.com/ryanaspire/everfiler Disclaimer I'm a scripting novice. This is the result of days of googling + trial and error so I can't guarantee it won't nuke your machine. Help Wanted For someone who knows what they are doing, I see some areas where it could be improved: I'm having trouble running this as a Shell script from Hazel. When I run it as an Automator script via Hazel, it works but this is clunky and the execution is slower. My home ISP blocks port 25 so [mail] doesn't work. Setting up Mutt is a pain. Would love to find a simpler solution Currently the Pushover notification fires a success notification unconditionally. Would be great to have a success/error notification. Other Push Notification options could also be added.
  4. I've got a single text file and want to create a note with each line in the text file being used as the note's title. How can I do this on OS X?
  5. I often want to save articles from the Wall Street Journal app when reading on my iPad. To do this, I would email the article to myself via the share button in the WSJ app, then, at the end of the week, I go through all of the articles I sent to myself, open them in my browser, and use the Web Clipper extension to save them to my Evernote account. The extension for clipping articles works very well, and I love the simplified article style so the articles are easy to read. However, the process of doing this for each article I want to save was slow and repetitive. To solve this, I learned AppleScript and I wrote a script that automatically picks up the link for the article from the emails I send to myself, and then uses the "Create note from URL" command to Clip the article from the WSJ url and places it in the notebook I specify. This process works, but the way that Evernote clips articles from AppleScript is very ugly and difficult to read. It includes HTML text from the ads on the page, as well as the entire list of comments at the bottom of the page. Is it possible to change the way that Evernote clips a page when invoked by AppleScript? If not, then I would like to place a feature request for the ability to match the styles of web clipping available in the extension when using AppleScript (such as the Simplified Article). Thanks in advance for any help.
  6. tell application "Evernote" set noteName to selection move noteName to notebook "Specific Notebook" end tell As near as I can tell, this should work. But it dosen't. Any ideas?
  7. Hi, I am totally, brand new to AppleScript. I have a bunch of school files that I need to upload to Evernote so I can search and find them easier. I have been googling ways to create a 'watched' folder to automatically detect and upload to Evernote. I have tried a couple AppleScript services that I found on some old blog posts but I haven't been able to get any of them to work. I am hoping that someone can share one that is definitely working, along with instructions on how to attach it to the Folder Actions Setup. I'm using Mac OS X Mavericks 10.9.2 I would appreciate any help! S.
  8. Hello all, I have been looking around at the e-mail to Evernote Applescripts mixed in with the just send to Evernote. I would like to build a script that does a bit more. I'm hoping someone could help me. Here is what I looking to do. I would like to highlight 1 or many messages (while loop) then right click on them and choose send to Evernote. But I would like the script to do the following: Get the subject for the e-mail then forward it to Evernote, wait a while then do an Evernote sync. File the e-mail that was just forwarded, and change the created date, to the date and time the e-mail originally came to my e-mail. Then add tags to the note, the tags would be like who the e-mail was from and from which of your e-mail accounts(if you have many accounts setup in mail). Then move the e-mail in Mail.app to an Evernote Folder or the trash for that account if you have more then one. If anyone has any code that might help with this it would be great. I would like to get this build and share it back to everyone. Thank you, Kyle
  9. Import CSV into Evernote as Separate Notes (Text Lists, Too!) I have seen a number of requests asking how to import CSV files into Evernote. Here is a solution provided by a great web site, Veritrope.com http://veritrope.com/code/evernote-csv-and-text-file-importer/
  10. Hi: I'm trying to do something super simple, but it's proving super diffiult. All I want is to open a collection window with no search term, no tags or notebooks not NOTHING. And I would like it sorted newest to oldest (in other words, I want to see the last few things I added to evernote no matter where or with what tags I added them. This is fairly easy in the front end, but it requires enough clicking, highlighting and deleting that I find it tedius. I would like to script it. Here is what I have: tell application "Evernote" close window 1 open collection window with query string "" end tell Works, as far as it goes, but if there happen to be tags left set in the search field, they are still there (are they different from a search term? I just add them by hand when searching and it finds them). Things like that. Also, I can't for the life of me figure the sort order thing out. It may simply not be scriptable.
  11. I'm running the beta: http://note.io/1jSkkLh When I run this AppleScript to create a note, it inserts a `(null)` string into the note: http://note.io/1jSkH8r Here's the AppleScript I'm running: https://gist.github.com/dasevilla/9d7a292d0f3184a4c935
  12. Should be a piece of cake, but I've been working on it for two hours. I'm out of ideas. set pathToJournalFolder to "Macintosh HD:Users:Scoot:Unbacked:JournalCalWorking:Events.txt" as text tell application id "com.evernote.evernote" activate create note title "Events" from file pathToJournalFolder notebook "Journal" end tell I get 'Missing Value" but for the life of me I can't figure out what it is. Why are the simplest things so difficult?
  13. Hi, I have a couple of workflows that rely on AppleScript. They've been working fine but seems as though some recent update has broken AppleScript again. Even the most basic of scripts returns the same error, time and time again: Evernote got an error: AppleEvent handler failed. To replicate, all you need is: tell application id "com.evernote.Evernote" create note with text "test note"end tellCheers, Pedro
  14. I have a Scansnap Manager and some Hazel rules. Everything I scan goes to a specific notebook in Evernote after a Hazel rule, but another copy always stays in my Evernote Inbox. Is there a way or a rule to trash this Inbox copy and let me stay only with the one in the notebook? Thanks
  15. I have downloaded an AppleScript to export all Evernote notes to a folder on my hard drive. Getting an error message when running the script (see screenshot). This seems to be a permissions issue. Running Mac OS X Maverics (10.9.2). Any thoughts on how to fix this? Regards, Emil
  16. Hello. I have an applescript question for evernote. I am trying to figure out how to replace the text content of a note using its local id as an identifier. What I have so far is: tell application "Evernote"set selected_notes to selectionset _noteID to my getNoteId(local id of (item 1 of selected_notes))--> set contents of note with local id of _noteId to "Hello World" <--end tellon getNoteId(note_id)set AppleScript's text item delimiters to "/"set the id_items to every text item of note_idset AppleScript's text item delimiters to ""return last item of id_itemsend getNoteIdThe line highlighted with --> <-- is where I am stuck. I have two problems: 1) I cannot, in general, figure out how to put text content into an existing note using applescript. The standard, 'set contents of window 1 to "xx"' doesn't seem to work. 2) I haven't the faintest idea how, once I figure out part 1, to tell evernote to replace the content of a certain note (using the local id as an identifier) with text that will be passed in from elsewhere. Can anybody help with this? Thank you very much
  17. tell application "Evernote" set note1 to create note title "Test" with text "Test" notebook "Blog" end tell The following error is returned: Expected end of line but found application constant or consideration.
  18. I'v been using a simple AppleScript that I use with Hazel for awhile now and just recently started getting an error. The script I use is: tell application "Evernote" activate create note from file theFile end tell When I go to compile it, the word "note" is highlighted and I get the error message below: The error message that I'm receiving is: "Expected end of line, etc. but found application constant or consideration" Any assistance will be appreciated
  19. Folks, Have searched through the forum archive and have goggled extensively without success. Am up around the 14,000 notes and want to start archiving a bit more aggressively. Would like to be able to remove the tags from a collection of notes (currently linked by common tag which I want to retire - too many tags) and then bulk editing the notes by appending a string to the end of their titles. DEVONthink allows me to do this via Applescript. Can't find any applescripts out there for Evernote. I really do not want to have to open each note individually to paste the string in. And I don't really want to transfer them to a second account. Just wish I had adopted GM's system of putting the keyword-tags in the title from day 1. Any suggestions appreciated. Steve J
  20. Hello, I would love to switch over to Evernote from what I am using now which is Journler. My problem of course is Importing all my entries, almost all of which have inline embedded images, photos, audio, hyperlinks. This script: https://github.com/michaelcaruso/journler-to-evernote Only preserves some of these elements and constantly throws various errors. Is there anything out there that would preserve my Journler structure but allow me to switch over? Any help is appreciated.
  21. I want to create an automator folder action that appends an existing note with an image that is placed into a folder with folder action. I.e. I have an already existing note called "DoneToday" in the notebook called "Done". When I place a new image to the folder called "Export" I want it to automagically appear at the end of the note "DoneToday". If it would be possible to add to the note the date and time when the image was created, that would be even more amazing but I can live without it. The hardest part for me is to figure out how to tell Evernote that the image needs to be added to "DoneToday" (instead of creating a new note). Does anyone know how to do this? I thank you in advance!
  22. Hi, I am trying to script evernote to run with my business. I've successfully created an applescript which will create a business notebook with the project name. The issue comes in with wanting to add it to a stack I have called work projects & share it to the business account or with a specific person in my team. So I ask is this functionality in the applescript API already and I just overlooked it (I've read the editor dictionary)? or if it isn't can you guys put it on the roadmap for implementation soon. As this is the last piece I need for an automated project organization system. I know right now I can just drag the created folder into the stack then share. It's just a pain that I wish I can automate. Thanks to whoever can help, Mark.
  23. Hello, I'm trying to make an Apple script in filemaker to import a file (pdf) in Evernote. Here's the code generate by my Filemaker script (inspired by http://veritrope.com/code/filemaker-record-to-evernote-as-note/) : tell application "Evernote" set new_note_title to "AMAZON : Book 20130133" set notebook_name to "Import FileMaker" set new_note_text to "test note" if (not (tag named "Amazon" exists)) then make tag with properties {name:"Amazon"} end if set tag1 to tag "Amazon" --construct the note-- set note1 to create note title new_note_title from file "file://Macintosh HD/Users/seb/Documents/Import/20130133.pdf" notebook notebook_name assign tag1 to note1 end tellMy problem is around the filename. If i change the "set note1 to create…" line by it's work fine but it's not what I want to do set note1 to create note title new_note_title with text new_note_text notebook notebook_nameIf somebody have solution…
  24. In searching for ways to batch-import from Instapaper into Evernote, I came across Daigo Tanaka's script to do just this: http://daigotanaka.org/?p=1288 The script seems to run perfectly (given the Event Log), activating Evernote and pulling the source urls, but invariably Evernote hangs and the script times out. Tanaka himself said he's no applscript expert, and I'm even less of one - does anyone know if there's something in the script that's causing the hang? Or is it simply that Evernote doesn't often play nicely with applescript? Here's the script taken from Tanaka's website: -- Basic settings set myNotebook to "Instapaper" set delayInSeconds to 1 set giveUpAfter to 30 set oldToNewOrder to true -- Function to make sure Evernote is up to makeSureEvernoteIsUp(giveUpAfter) tell application "Evernote" to activate tell application "System Events" to set processCount to the count of (processes whose name is "Evernote") set trial to 0 repeat until processCount > 0 or trial > giveUpAfter delay 1 tell application "System Events" to set processCount to the count of (processes whose name is "Evernote") set trial to trial + 1 end repeat if processCount = 0 then return false end if return true end makeSureEvernoteIsUp -- Main set prevDelimiter to AppleScript's text item delimiters set AppleScript's text item delimiters to {","} log "Making sure Evernote is up..." if makeSureEvernoteIsUp(giveUpAfter) = false then display alert "Evernote did not start :(" error number -128 end if tell application "AppleScript Editor" to activate set theFile to (choose file with prompt "Select a text file containing URLs") open for access theFile set FileContents to paragraphs of (read theFile) if oldToNewOrder then set FileContents to reverse of FileContents end if close access theFile -- Loop through the URLs set i to 1 repeat with nextLine in FileContents if length of nextLine is greater than 0 then try set myData to every text item of nextLine set {theUrl} to {item 1 of myData} log {i, theUrl} tell application "Evernote" set countMatches to count (find notes ("sourceURL:" & theUrl)) end tell if countMatches = 0 then log " Adding this article…" tell application "Evernote" create note from url theUrl notebook myNotebook end tell set trial to 0 repeat until countMatches = 1 or trial > giveUpAfter if makeSureEvernoteIsUp(giveUpAfter) = false then display alert "Evernote crashed? Please try running the script again." error number -128 end if set trial to trial + 1 delay delayInSeconds tell application "Evernote" set countMatches to count (find notes ("sourceURL:" & theUrl)) end tell end repeat if trial > giveUpAfter then log " …error adding this artile." else log " …done" end if else log " Already exists. Skipped." end if end try end if set i to i + 1 end repeat -- Finishing up set AppleScript's text item delimiters to prevDelimiter tell application "Evernote" synchronize end tell If anyone has any ideas on the script - or any other method of batch-importing from Instapaper (or any other .csv list of urls), it'd be much appreciated.
  25. I've been trying to write an applescript to add a link to a new note at the current cursor position. I've gotten the applescript to create a new note and add a link at the *end* of the current note, but I can't figure out how Evernote deals with cursor position. I'm pretty new at applescript, so any advice would be appreciated. on run tell application "Evernote" set new_note to create note title "NEW NOTE" with text "" tell new_note set the_link to the note link repeat while the_link is missing value synchronize delay 1 set the_link to note link end repeat end tell tell front window tell item 1 of (get selected notes) append html "<a href=" & the_link & ">new link</a>" end tell end tell open note window with new_note end tellend run
×
×
  • Create New...