idpaterson / alfred-wunderlist-workflow

Unbelievably fast task entry in Wunderlist with due dates, reminders, and recurrence
298 stars 8 forks source link

Unicode characters in tasks are corrupted upon entry #25

Closed idpaterson closed 10 years ago

idpaterson commented 10 years ago

Add a task such as Sonreír más and you'll get Sonrear mas. This is a side effect of using the seemingly convenient keystroke command to send input to Wunderlist. Unfortunately, most "special characters" require more than one keystroke which invalidates this approach for adding content.

Seems it could be necessary to go back to using the clipboard which was fraught with problems in the past. I know that the Search text is scriptable, but the text field where a new task is added is not. There seems to be no way to set its value from AppleScript except by pasting; even the cursor and selection are custom UI elements.

idpaterson commented 10 years ago

The above change reverts to inserting text via the clipboard, which has been problematic in the past. Short delays have been added after each keystroke, hopefully reducing the likelihood of pasting the wrong text.