tamvodopad Posted May 2, 2018 Share Posted May 2, 2018 This action not work with Russian language ?: Info from debug: Starting debug for 'Things' [2018-05-02 13:38:10][ERROR: action.script] 0:82: execution error: Получена ошибка от «Things3»: Не удается получить list "–Т—Е–Њ–і—П—Й–Є–µ" of application "Things3". (-1728) [2018-05-02 13:38:10][ERROR: input.scriptfilter] Code 1: 0:61: execution error: Получена ошибка от «Things3»: Не удается получить list "–Т—Е–Њ–і—П—Й–Є–µ" of application "Things3". (-1728) [2018-05-02 13:40:58][ERROR: input.scriptfilter] Code 1: 0:61: execution error: Получена ошибка от «Things3»: Не удается получить list "–°–µ–≥–Њ–і–љ—П" of application "Things3". (-1728) I think problem with russian Inbox translating and russian project names. Link to comment
xilopaint Posted May 2, 2018 Author Share Posted May 2, 2018 (edited) On 5/2/2018 at 7:49 AM, tamvodopad said: This action not work with Russian language ?: Info from debug: Starting debug for 'Things' [2018-05-02 13:38:10][ERROR: action.script] 0:82: execution error: Получена ошибка от «Things3»: Не удается получить list "–Т—Е–Њ–і—П—Й–Є–µ" of application "Things3". (-1728) [2018-05-02 13:38:10][ERROR: input.scriptfilter] Code 1: 0:61: execution error: Получена ошибка от «Things3»: Не удается получить list "–Т—Е–Њ–і—П—Й–Є–µ" of application "Things3". (-1728) [2018-05-02 13:40:58][ERROR: input.scriptfilter] Code 1: 0:61: execution error: Получена ошибка от «Things3»: Не удается получить list "–°–µ–≥–Њ–і–љ—П" of application "Things3". (-1728) I think problem with russian Inbox translating and russian project names. Has it worked for you before or have you just tried the workflow for the first time? Edited March 31, 2023 by xilopaint Link to comment
xilopaint Posted May 14, 2018 Author Share Posted May 14, 2018 (edited) Update (v1.5): Added ability to show to-dos in projects using the ⇧ modifier key. Fixed multiple issues for non-English locale. Edited May 14, 2018 by xilopaint thanasut 1 Link to comment
xilopaint Posted May 14, 2018 Author Share Posted May 14, 2018 Hey @tamvodopad, your issue should be fixed on the latest release. Link to comment
xilopaint Posted May 15, 2018 Author Share Posted May 15, 2018 Update (v1.5.1): Fixed typo in Mark as Completed action. thanasut 1 Link to comment
xilopaint Posted October 15, 2018 Author Share Posted October 15, 2018 Update (v1.6): Adopt JSON format to generate Alfred feedback. Link to comment
TACD Posted November 6, 2018 Share Posted November 6, 2018 (edited) On 2/12/2018 at 4:10 AM, xilopaint said: If the keyword todo is not working for you, please paste here what you get in the debug console after typing it. The keyword isn't working for me; here's the debug output: [2018-11-06 14:46:04][input.scriptfilter] Queuing argument '(null)' [2018-11-06 14:46:04][input.scriptfilter] Script with argument '(null)' finished [2018-11-06 14:46:04][ERROR: input.scriptfilter] Code 1: 0:61: execution error: Not authorised to send Apple events to Things3. (-1743) It used to work at one point, but that was quite a while ago (I've simply not got around to looking deeper into the issue until now). Edited November 6, 2018 by TACD Link to comment
deanishe Posted November 6, 2018 Share Posted November 6, 2018 4 hours ago, TACD said: It used to work at one point, but that was quite a while ago Presumably before you updated to Mojave. You need to grant the appropriate permissions in System Preferences. xilopaint 1 Link to comment
cjs226 Posted March 27, 2019 Share Posted March 27, 2019 Thank you for this! Is it possible to use the workflow to send you to Things, specifically showing you the Today view of a specific tag? For example, I use tags to break up my life by 'Work', 'Family and Friends' and 'Personal'. So, it'd be great if I could call the workflow to put me in a specific view within Things. Link to comment
xilopaint Posted March 27, 2019 Author Share Posted March 27, 2019 (edited) 16 minutes ago, cjs226 said: Thank you for this! Is it possible to use the workflow to send you to Things, specifically showing you the Today view of a specific tag? For example, I use tags to break up my life by 'Work', 'Family and Friends' and 'Personal'. So, it'd be great if I could call the workflow to put me in a specific view within Things. I will look into implementing such feature. Thanks for the suggestion. Edited March 27, 2019 by xilopaint Link to comment
xilopaint Posted May 13, 2019 Author Share Posted May 13, 2019 (edited) Update (v1.7): Added support for tags. Added ability to interact with to-dos in projects. Adopts Quick Entry Panel for adding to-dos. Edited May 14, 2019 by xilopaint Link to comment
xilopaint Posted May 14, 2019 Author Share Posted May 14, 2019 Update (v1.7.1): Fixed a bug that prevents to-dos to be displayed in lists. Link to comment
Armin Soyka Posted January 20, 2020 Share Posted January 20, 2020 Hello - just installed the Workflow, works great! Thank you. Question: Is it possible to perform a search for tasks in Things 3 via Alfred? I'd like to type in: todo "searchstring" and then either open Things3 and display the search, or see the options inside Alfred already as a dropdown and enter to open task. Would that be possible at all? Thanks! Link to comment
amparose Posted January 21, 2020 Share Posted January 21, 2020 I just installed this and it seems really buggy that it's not usable. Not sure if perhaps there is an issue with Catalina? My Inbox currently has 45 items in it and they don't show up with this workflow. Most of the other sections are blank as well but sometimes an Area will take a few seconds and then populates with Projects and items. Pressing enter on a Project focuses it in Things instead of showing the items within in in the workflow (I believe the docs indicate that that they should show in Alfred), or at least opening the project in Things. Looks like it could be useful if it worked and was fast. Link to comment
goubi Posted June 15, 2020 Share Posted June 15, 2020 Hi All, NOOB QUESTION any idea how to add item to check list? I know that thanks to this syntax: title #tag1 #tag2 [project name/area name] ::note we can add new thing to any given area with note. But what if I have a checklist in given topic and I would like to another item to the checklist? Anyone know if this syntax can be modified somehow? Link to comment
xilopaint Posted March 30, 2023 Author Share Posted March 30, 2023 @vitor, I'm translating this workflow to JXA. This is how the original AppleScript version calls the script: This passes a list of parameters to a run handler in things.applescript. What is the equivalent way in JXA of passing an array of parameters to the run function of an uncompiled script named things.js? Link to comment
vitor Posted March 31, 2023 Share Posted March 31, 2023 (edited) If you have the script written in JXA with a run function, why use AppleScript or JXA to run it? You can call it from Zsh or Bash like any other script; the arguments will be sent to the function. Also, use with input as argv. And if you’re telling Alfred to filter results you can’t also pass the argument because then there’d be no distinction between the argument and the filtering. Edited March 31, 2023 by vitor Link to comment
xilopaint Posted March 31, 2023 Author Share Posted March 31, 2023 5 hours ago, vitor said: You can call it from Zsh or Bash like any other script; the arguments will be sent to the function. Do you mean by using this osascript -l JavaScript things.js showLists ? Link to comment
vitor Posted March 31, 2023 Share Posted March 31, 2023 If the script is executable and has the proper shebang (#!/usr/bin/osascript -l JavaScript) you can just ./things.js showLists. Link to comment
xilopaint Posted April 1, 2023 Author Share Posted April 1, 2023 (edited) Hey @vitor, I managed to translate everything to JXA except this small AppleScript handle: on deleteToDo(argv) tell application id "com.culturedcode.ThingsMac" set toDo to to do id (item 2 of argv as text) move toDo to list id "TMTrashListSource" end tell end deleteToDo This was my try: function deleteToDo(argv) { const app = Application("com.culturedcode.ThingsMac"); const toDo = app.toDos.byId(argv[1]); const trashList = app.lists.byId("TMTrashListSource"); toDo.move({to: trashList}); } But I’m getting this error in the toDo.move({to: trashList}); line: ERROR: Things[Run Script] ./things.js: execution error: Error: Error: Can't convert types. (-1700) This is the JavaScript dictionary of the move method of the ToDo object: move method : Move a to do to a different list. move specifier : the to do(s) to move to: List : List to use as target And this is the dictionary of the ToDo object: ToDo Object : Represents a Things to do. elements contains tags; contained by application, areas, lists, contacts, projects, tags. properties id (text, r/o) : The unique identifier of the to do. name (text) : Name of the to do creationDate (date) : Creation date of the to do modificationDate (date) : Modification date of the to do dueDate (date) : Due date of the to do activationDate (date, r/o) : Activation date of the scheduled to do completionDate (date) : Completion date of the to do cancellationDate (date) : Cancellation date of the to do status ("open"/"completed"/"canceled") : Status of the to do tagNames (text) : Tag names separated by comma notes (text) : Notes of the to do project (Project) : Project the to do belongs to area (Area) : Area the to do belongs to contact (Contact) : Contact the to do is assigned to methods move, schedule, show, edit. Any ideas? Edited April 1, 2023 by xilopaint Link to comment
vitor Posted April 1, 2023 Share Posted April 1, 2023 At a glance that looks like it should be app.move(toDo, {to: trashList});. Link to comment
xilopaint Posted April 1, 2023 Author Share Posted April 1, 2023 4 hours ago, vitor said: At a glance that looks like it should be app.move(toDo, {to: trashList});. It returns the same error. There's a Stack Overflow question about this. I start to think it might be a bug in Thing's JXA API. Link to comment
xilopaint Posted April 12, 2023 Author Share Posted April 12, 2023 Update (v2.0): The workflow has been rewritten in JXA. Link to comment
andy4222 Posted February 4 Share Posted February 4 @xilopaint Thanks for making this workflow. Any chance you plan to include search results (of todo items, heading) to this workflow? Link to comment
xilopaint Posted February 4 Author Share Posted February 4 @andy4222 What do you mean by "search results"? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now