


Nick Janetakis, who created the original Python script, and the generosity of the creator of deserve the praise on this one. The statements from my original post still stand.
#KEYBOARD MAESTRO FIND WORD UPDATE#
If you wish to utilise this change, you can build the macro yourself from the information presented here, update based on the original post, or download the updated version. read ()) strTitle = "" for jsonItem in jsonContent : strTitle = strTitle + ( jsonItem + jsonItem ) #Write out the title Import os import urllib.request import json import sys #Build the input string
#KEYBOARD MAESTRO FIND WORD CODE#
That is fine for me, but may not be for others - though it does open up an opportunity for others to tinker with the code to meet their own particular requirements. This left me with a much smaller set of working code, but also with less flexible code in that it is tailored to my specific requirements. By returning the result as JSON, this further allowed me to simplify the extraction of data. I think the issue was to do with a change in the URL scheme, and after I figured that out, rather than passing out to CURL to do the processing, I switched the code to use a direct request call from Python. In this case, because I only ever use one particular style, I immediately stripped out all of the code around processing variations.

In investigating issues with code that I did not originally create, I have a general approach of if the answer is not immediately obvious, I start to break down the code to get it to a simple form that allows me to address the issue. In today’s post I’m going to quickly share the update. As a result I ended up taking the existing Python code, simplifying it for my own specific needs and tweaking it for the issue I was experiencing.

Unfortunately, I think there was a change at the site level that started causing issues for me either last year, or earlier this year. Last year I published a post about how I was using Keyboard Maestro along with a Python script that accesses to convert titles into a specified style.
