In the new version, I get error again:
Traceback (most recent call last):
File "act.py", line 48, in <module>
process()
File "act.py", line 36, in process
o = check_output(["osascript", "-e", scpt("parse quicksilver input \"{0}\"".format(inp.encode("utf-8")))])
File "act.py", line 10, in scpt
end tell'''.format(innards)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 25: ordinal not in range(128)
You can add .decode("utf-8") at 10 and 19(?) lines to resolve it
end tell'''.format(innards.decode("utf-8"))
And you made a typo in line 43, so choice of areas and projects will not work
o = check_output(["osascript", "-e", scpt_act("show ({0} named \"{1}\")".format(thing.encode("utf-8", inp.encode("utf-8"))))])
o = check_output(["osascript", "-e", scpt_act("show ({0} named \"{1}\")".format(thing.encode("utf-8"), inp.encode("utf-8")))])