Jump to content

DrLulz

Member
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DrLulz

  1. I updated to 6.0.6 Beta 1 (451237 Direct) Works like a charm.
  2. 6.0.5 (451190 App Store) Did you do a clean install when you upgraded? I did, would that matter? Edit: The scheme works in Safari.
  3. I was hoping you wouldn't say that... Yep, the script crashes Evernote every time. Edit: EN v6.0.5 I can do this: set image_html to "<div><img src=\"http://cdn.searchenginejournal.com/wp-content/uploads/2013/09/google-panda-penguin.jpg\"/></div>" tell application "Evernote" to create note with html image_html title "IMAGE" notebook my en_inbox() on en_inbox() tell application "Evernote" to return name of (every notebook whose default is true) end en_inbox But not: set image_html to "<div><img src=\"file://localhost/Users/drlulz/Desktop/en_image/image.png\"/></div>"
  4. Thanks for the information and the kind words. Apparently Yosemite has an issue with getting files via file://localhost. The link is a bit off the mark, but describes my problem. Evernote just crashes when I try to add anything with that scheme. OmniOutliner gives the message below when trying to get the image (that smiling finder icon makes me want to slap my computer). If I configure apache I can do http://localhost/~DrLulz/image.png, but I don't want to go that route because users may get stuck. Thoughts?
  5. I’ve been trying to clean up my fork of Skimmer. I’ve added the option to export to OmniOutliner or Evernote, extract images, clean up text, word counts, etc. Description & Screenshots GitHub Repository If you don’t mind I have a few questions. I’m having difficulty adding images sequentially in Evernote. It seems that I’m only able to append a note if it directly follows note creation. This makes it near impossible to loop through the annotations adding them in sequence. Instead, I have to make a list of images (from grabbing boundaries of a box note), create the note with html, and then repeat through the list of images adding them all at the end of the note. I found this post which describes this limitation. The line is 373 in the script. Do you know of a better way? Although I advise everyone to try Alfred and Skimmer, some don’t want to install Alfred (I know, crazy). Is it possible to use the _skimmer.app here without the Skimmer Workflow? Can they just run the app once to use it for linking back to the page?
  6. First off, I am new to programming. My interest in such things was sparked by the discovery of Alfred, and the Skimmer workflow which I use daily. This project began as a simple format change of the Evernote export Skimmer offers to suite outlines. I’ve looked at code from some workflows here, and I’m not fooling myself, in many ways what I have is still simple and is still very much based on Skimmer. What I have thus far is a functioning Applescript which builds off of the Skim export to include exporting to OmniOutliner, as well as Evernote. I take my school powerpoint lectures, convert to pdf, and mark it up with annotations. When I’m finished I export with options specific to the lecture pdf. For example, I’ve included image extraction, text correction, word frequency, etc.. Description & Screenshots GitHub Repository Short Term Goals: 1. Move the Applescript into an Alfred Workflow where I can pass option selections directly. Examples: export -oo = Export to OmniOutliner export -en = Export to Evernote export -oo -i = Export to OmniOutliner & Extract Images 2. Shorten / Clean up the Applescript I can’t help feeling like there is a better way to accomplish some of ideas in the script. The problem is that I’m blind to these areas. I don’t know there is a more optimal way to do xxx. 3. Evernote Images I’m having difficulty adding images sequentially in Evernote. It seems that I’m only able to append a note if it directly follows note creation. This makes it near impossible to loop through the annotations adding them in sequence. Instead, I have to make a list of images (from grabbing boundaries of a Skim box note), create the note with html, and then repeat through the list of images adding them all at the end of the note. I found this post which describes this limitation. The line is 373 in skim-2-oo-n-en.scpt (repository). Does anyone know a way around this? Long Term Goals: 1. Speed up the option “Find Spaces” Some PDF’s, converted from .pptx, have mangled text. In some instances when text is copied & pasted from the PDF all the spaces are removed. I’ve tried many different ways of converting the .pptx (Mac & PC PowerPoint, Online Converters, Office Online, etc.), but the issue persists. I’ve implemented this python code into Applescript with a few additions, but I imaging that it would be faster if I had the .py in its own file and pass arguments to it from the script. Is there a simple example, using Alfred, that I can study? The whole process is dependent on a word list sorted by frequency. Without factoring computer specs, the speed is a function of the number of words in the list and the amount of annotated text, and the quality is dependent on the type of words. I’ve pieced together a medical word list using Corpora whereby I made individual searches of nouns, verbs, etc. filtered by Medical, Speech and Academics. The results output a list with the word and the overall frequency of the word. I combined all the searches in a spreadsheet, sorted by frequency, and then removed duplicates. This list is good for PDF’s with medical terms, but not so good if the text is not medical. For those I used these extensive lists here. I would like to call up Alfred, type in export -oo -fs, and then in the Alfred dropdown be able to select which list I want to use. Also, the .py function breaks the string if number are contained in the annotation. Every character after a number is separated by a space (There are 7 d e a d l y s i n s). I need to figure a way to pass over numbers and resume after the number. 2. Find a new way to determine word frequency in the PDF This frequency is not related to the above. This is the top 50 words contained in the entire PDF presentation. I use it to get the gist of lecture. Currently I’m using Applescript to accomplish this, but even though my journey began with Applescript I’m finding it less appealing every day. Good for some things, but unnecessary for most. I would like to use something different, preferably python because in my uneducated state seem to think it is intuitive. However, I still need to incorporate a list of words to ignore, so that I don’t get “The word “the” appeared 147 times in document X.” 3. Change export format via Alfred Similar to my short term goal, yet different, and not needed immediately. I’ve noticed many workflows allow the user to set default options by doing something like export -d which brings up a different menu. In this menu I could see Define Default Font or Define Default Font Size then select my option and type in the font I’d like to use. I’m looking for any ideas, suggestions, examples, documentation, or forums for python similar to macscripter.net. Alfred has really changed the way I work and study, and I’m still surprised more people don’t use it or know about it.
  7. I guess I shouldn't have taken it so literally, but it was in the description "This workflow has only one keyword and one action. Use the keyword libgen to begin...." Can't wait for the ZotQuery update, I use it everyday!
  8. Dude... Awesome... I can now find texts with blazing speed. I use the hell out of most everything you design. Changing my username to smarg19's #1 fan. Is that taken already? Not to be pushy with free stuff, but I have a question/request. If, like you said, we're limited to one keyword would it be possible to either increase the number of displayed Alfred results, or open a page on the site with the search query? At any rate thanks a ton.
  9. That would save me from having Anki open, but I'd be adding a copy/paste step to the flow if I understand correctly.
  10. The best cards are generally short and to the point, and Alfred may be useful for creating them. Using Anki correctly requires that the cards not cover more than a topic or two. After a card is presented you tell Anki if you knew the topic, if it was "fuzzy" remembering it, or if you flat out had no idea. Based on your input Anki calculates when to show you the card again based on the algorithm. I love that Alfred never gets in the way. Its always there, but like a silent friend ready to spring into action at a moments notice. I'm always reading something, and consequently most of my cards are just copy/paste. If I could call up Alfred and input some text into Anki without making the Cloze Deletions, it would still save abundant time. I wouldn't skip a beat, and later I could go in and add some brackets with little effort. I'm not sure about reviewing cards with Alfred. It seems like it would be monster effort to get the deletions to show correctly, or to tell Anki your proficiency on a topic so that it can calculate when to show the card again.
  11. Anki is a powerful flashcard program. It is written in python and fully documented. There are two primary areas where Anki excels. 1. The spaced repetition algorithm. 2. Its fully customizable. Types of Cards: Basic: Side1=Question, Side2=Answer Cloze Deletion: Essentially a fill in blank, but extremely useful. Example of Cloze: This is what is written: Ventricular {{c1::Tachycardia}} is caused by {{c2::reentry}}. Antiarrhythmic drugs alter the {{c1::absolute}} refactory period or {{c1::conduction}} {{c1::velocity}} to prevent {{c2::reentry}}. The c1 and c2 are two different cards. The c1 would show as: Ventricular ___ is caused by reentry. Antiarrhythmic drugs alter the ___ refactory period or ___ ___ to prevent reentry. The c2 would show as: Ventricular Tachycardia is caused by ___. Antiarrhythmic drugs alter the absolute refactory period or conduction velocity to prevent ___. Optionally, you can designate a hint when writing the cloze deletion: Ventricular {{c1::Tachycardia::BMP > 100}} is caused by {{c2::reentry}}. So the result would display as: Ventricular [BPM > 100] is caused by reentry. There is also the possibility to add an image to the "Extra" field. There are many other options, but I just highlighted a few. This endeavor is well beyond my scope of expertise, and this post is basically a "shot in the dark" as I don't expect anyone to actually assume this task. I thought maybe, just maybe, there is someone out there who is so well versed in the arts of Alfred and Python that this request would be trivial. Med students everywhere would be forever grateful. best,
  12. Here's one I did for me. I'm not very skilled in the arts of Alfred, so what I've got is barely allowed to sit at the kiddy table, but it will work for one file at a time. Pages to PDF
  13. Google Web Interface and Search Language Codes there's one for Klingon "xx-klingon" thanks again for the workflow
  14. How can I add an option for Brazilian Portuguese? There are slight differences. The Google code for Brazil is pt-BR, whereas for Portugal it is pt-PT. do I just add another line in languageCodes.php? 'pt-BR' => 'Portuguese-BR', EDIT: That did it, now I just need a slick icon with the Brazilian flag. EDIT2: pt-BR.png
  15. This is more of an Evernote application question, so I was hesitant to ask here, but I thought if anyone Carlos-Sz would know. When opening a note in a separate window is there a way to make the window always display on top of the others? This seems like a simple thing which makes me think I haven't searched enough, or I'm just missing something. Most of the search results talk about making a note within Evernote filter to the top, not about making a note window stick atop other windows.
  16. This is so great! My wife is Brazilian, and when her family comes around this will come in handy. I know quite a bit of Portuguese, but this will make it easier to learn. Thanks a bunch.
  17. Thanks for the insight. I'll keep the Applescript as time is currently my biggest enemy. Maybe when classes are over in a few weeks I'll get acquainted with Alfred, but it'll have to be in between beer and fishing. I plan on doing copious amounts of both.
  18. @smarg19 I've been playing with tags during the export, and I've found myself in uncharted water regarding Alfred (uncharted for me of course). I've made it so that when I export from Skim my list of current Evernote tags is displayed. From here I can choose from this list, or create a new tag(s). Thus far I've been successful using "choose from list" and "display dialog" with Applescript, but I would like to now move these functions to Alfred, so that after I key in "export" I can see a list of my current tags in Alfred's results, or type in a new tag. I'm pretty sure I should be using the qWorkflow to display results in Alfred, but what I really want to know is the difficulty level of what I'm trying to attempt? Applescript
  19. Excellent. So thats how you call a handler inside a handler (I think I got that right), and the way you did the spacers was something I tried to do but couldn't figure out. When I see it like that it makes sense, so thank you yet again . Having one issue though, for some reason when I try to export it doesn't make it to Evernote. With your other script, when the export is successful, the Results section in Applescript Editor displays "Exported notes to Evernote as HTML," but here it displays the text of the first highlight.
  20. Sure thing. The default favorite colors in Skim, after a fresh install, are equal to the colors shown above (in smarg19's 2.0 update post), so if you like those colors then there is nothing that needs to be done to use this script. However, some might find Skim's default highlight colors too strong, where the color distracts from the text. If the user chooses to change these colors (shown below), then the script I posted will use these colors instead (no Applescript changes needed unless you want to change a bullet style, or the orange and red text for favorite colors 5 and 6; see below). The leftmost color is the main bullet, The 2nd color is the first indented bullet, The 3rd color is the second indentation, The 4th color is text under said bullets The 5th color I use for Pharmacology, so I have a pill as a bullet, and have colored the text orange The 6th color I use for lecture tips, so there is a red exclamation point for a bullet, and red text after export. (see my earlier post) These are the favorite colors: If you don't see this color bar then: If you want to change these Favorite Colors then: If you want to change the exported text color seen in Evernote (Has nothing to do with Skim's favorite colors) then change this line in the script: (Note: This is what I use for Pharmacology) --Highlight Note HTML FAV5 property highlight5_prefix : "<p>" property highlight5_title_wrap_front : "<strong>" property highlight5_title_wrap_back : "</strong>" property highlight5_body_wrap_front : "<font color=\"" property highlight5_body_text_color : "#CC7A29" ---------------- CHANGE THIS property highlight5_end_quote : "\">" property highlight5_body_wrap_back : "</font> " property highlight5_page_wrap_front : "" property highlight5_page_abbr : "" property highlight5_page_wrap_back : "" If you want to change the bullets then change these in the script: hope that clarifies. I've said it before, and probably will again, but thank you x1000 smarg19 for this amazing utility. EDIT: I just remembered that if a person is reading this then they're more than likely using Alfred (duh!), so if a person wishes to speed up the switching between favorite colors then set up a workflow with 6 hotkeys (I use ⌥+1, ⌥+2, ⌥+3, ⌥+Q, ⌥+W, ⌥+E; ⌥ = Option) linked to 6 run scripts (osascript). The Applescript is below. Applescript: tell application "Skim" activate set rgba to favorite colors set theColor to item 1 of rgba ------ CHANGE THE 1 TO 2 FOR THE SECOND FAVORITE COLOR, ETC, ETC if (count of documents) is 0 then return end if set theTool to the tool of the front document if theTool is highlight note tool then set default note colors to {highlight note color:theColor} else beep end if end tell
  21. Thanks for the new Skimmer, its my biggest time saver. If any students out there desire to use this for pdf generated powerpoints I've taken snippets from smarg19's previous versions (nothing original from me), so that exports have indentation, bullets, and colors (colors are either from users favorite colors, or a hex value). Can be found here. So if your powerpoint slide looks like this after you highlight: It looks like this in Evernote:
  22. that did it. question, usage: after punching in the keyword (or hotkey) with and then entering a playlist name followed by selection of playlist. I'm presented with "spot_mini Playlist⇾spotify:user:drlulz:playlist:66kkwCLUdjJtvs2pC9mlNq⇾" at which point I can search further for a track. As I search for a song it is not filtered to the top (it is always at ⌘5). The first 4 items are, the playlist I'm currently searching, open in spottily, update playlist, and a information icon telling me to select a track below to play it. ​is there something i can set on my end to make the song filter to the top, so i can just press enter to select?
  23. the install for 4.3.1 was good here, but when trying to set the Alfred playlist for the first time (I haven't used it previously) i received this error. EDIT: I should mention that I haven't noticed a functional consequence of said error. Everything seems to be good.
×
×
  • Create New...