Jump to content

leeleblanc

Member
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    leeleblanc got a reaction from giovanni in introducing alfred-outlookSuite 📬, a suite of tools to interact with Microsoft Outlook via Alfred   
    This workflow is, awesome. 💪 
     
    Anyway to be able to get the body of the draft message filled in along with the Subject line?
  2. Thanks
    leeleblanc reacted to deanishe in Automatic spelling correction? Flummoxed by ... spell chekced y'all.   
    It was very easy for me because I already knew all of the necessary stuff (basic text parsing, structure of an Alfred snippet/snippet collection, creating a ZIP file in Python).
     
    I copied this list into my code editor (I use Sublime Text, but whatever), made sure each misspelling only had one correction (i.e. deleted all but one alternative), and pasted the text into a Jupyter Python notebook.
     
    Then I wrote the code to (a) parse the text into (misspelling, correction) pairs, (b) convert each pair into the appropriate structure for an Alfred snippet, (c) convert those structures to JSON, and (d) put them all in a ZIP file. (Alfred workflows and snippet collections – and a whole host of other file formats – are just ZIP files with different extensions.)
     
    It's only about 40 lines of code, all in all.
×
×
  • Create New...