Jump to content

aoshevnev

Member
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Location
    Minsk, Belarus

aoshevnev's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. 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")))])
  2. act.log: 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))]) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128) I added .encode('utf-8') in 36 line and it worked o = check_output(["osascript", "-e", scpt("parse quicksilver input \"{0}\"".format(inp.encode('utf-8')))]) Perhaps problem was in python 2.7.x Thanks for help (:
  3. It does not work The task does not fall into inbox
  4. You can add support for utf-8? That would be great!
×
×
  • Create New...