Hi, I just installed your workflow, and it looks great, but there's some issue and I can't figure out what is going on (assuming it is supposed to).
Versions:
- MacOS 11.5.1
- Things 3.14
- Alfred 4.5.1 (and confirmed that Alfred is able to control Things from the Privacy pref pane)
- alfred-things workflow 1.7.1 (tried both the 1.7.1 tag and master branch, all results below are with master)
when I enter "todo" in Alfred, I get the initial list, including my custom Areas, but for all of them, if I hit return on one, nothing happens (as in, Alfred goes away).
Here's the Alfred workflow debugging output (I've included everything from when I invoke it):
[22:35:46.512] Things[Script Filter] Queuing argument '(null)'
[22:35:47.413] Things[Script Filter] Script with argv '(null)' finished
[22:35:47.425] Things[Script Filter] {"items": [{"title": "Inbox", "subtitle": "", "arg": "TMInboxListSource", "valid": true, "icon": {"path": "icons/inbox.png"}, "mods": "" }, {"title": "Today", "subtitle": "", "arg": "TMTodayListSource", "valid": true, "icon": {"path": "icons/today.png"}, "mods": "" }, {"title": "Anytime", "subtitle": "", "arg": "TMNextListSource", "valid": true, "icon": {"path": "icons/anytime.png"}, "mods": "" }, {"title": "Upcoming", "subtitle": "", "arg": "TMCalendarListSource", "valid": true, "icon": {"path": "icons/upcoming.png"}, "mods": "" }, {"title": "Someday", "subtitle": "", "arg": "TMSomedayListSource", "valid": true, "icon": {"path": "icons/someday.png"}, "mods": "" }, {"title": "Logbook", "subtitle": "", "arg": "TMLogbookListSource", "valid": true, "icon": {"path": "icons/logbook.png"}, "mods": "" }, {"title": "Trash", "subtitle": "", "arg": "TMTrashListSource", "valid": true, "icon": {"path": "icons/trash.png"}, "mods": "" }, {"title": "Sherwin-Williams", "subtitle": "", "arg": "THMAreaParentSource/PgicspDTcCobZf9Aag2muJ", "valid": true, "icon": {"path": "icons/area.png"}, "mods": "" }, {"title": "Home", "subtitle": "", "arg": "THMAreaParentSource/URKDLLFXPYvddfcRLszGGz", "valid": true, "icon": {"path": "icons/area.png"}, "mods": "" }, {"title": "Photography", "subtitle": "", "arg": "THMAreaParentSource/VcotsmpBSS9FX7rtD3SLc2", "valid": true, "icon": {"path": "icons/area.png"}, "mods": "" }, {"title": "Templates", "subtitle": "", "arg": "THMAreaParentSource/217K7yvrkS9MreuwUQ4mfA", "valid": true, "icon": {"path": "icons/area.png"}, "mods": "" }]}
<return is pressed here>
[22:35:51.279] Things[Script Filter] Processing complete
[22:35:51.279] Things[Script Filter] Passing output 'TMInboxListSource' to Arg and Vars
[22:35:51.280] Things[Arg and Vars] Processing complete
[22:35:51.281] Things[Arg and Vars] Passing output 'TMInboxListSource' to Call External Trigger
[22:35:51.281] Things[External] Processing complete
[22:35:51.282] Things[External] Passing output '' to Script Filter
[22:35:51.322] Things[Script Filter] Passing output 'TMInboxListSource' to Run Script
[22:35:51.336] Things[Script Filter] Queuing argument '(null)'
At first I thought this seemed similar to #19, even though I'm not seeing any parsing errors. I still went through and removed/replaced all "
and '
quotes in everything in Things, and it shows that none exist anywhere if I search for either.
I also tried adding some simple debugging/alert statements in the AppleScript, and I confirmed that, for example, if I select Inbox, it retrieves all 10 items that exist there, and it was able to convert it to json successfully (from things.applescript
, just before the return statement in the showToDos
method). I validated that json and formatted it, and it is below:
{
"items":
[
{
"title": "Back to Lists",
"subtitle": "",
"arg": "back",
"valid": true,
"icon":
{
"path": "icons/back.png"
},
"mods": ""
},
{
"title": "Archive email",
"subtitle": "",
"arg": "M5m6xJj5HgUB7odurdQQ5X",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Send onboarding email to Joe",
"subtitle": "",
"arg": "5wsEGxqaxnidQzXjr29J61",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Review “Using Automation Shortcuts for Location-Based Reminders” for Things 3",
"subtitle": "",
"arg": "5HqCQNoNcjrnGEg91g2DG8",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Respond to Mike Kurtz email from 8/12 @ 9:35 AM",
"subtitle": "",
"arg": "NtRUKJYrcEqQikULRGEZ3a",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Work with Manuel for Github user in AD",
"subtitle": "",
"arg": "4e8jtHjN3oLXS5rkzoTDFj",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Schedule Meeting with team for ORCA overview",
"subtitle": "",
"arg": "Dh6Pxj9mjLS4PzKQxRC8Lp",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Determine organic growth rate of apps ",
"subtitle": "",
"arg": "BgRwnwU7BqhqVMXbKMLrqf",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Fix album art",
"subtitle": "",
"arg": "5CeUPRQWRYYgDuHdeR4hFj",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "Onboarding new agency dev",
"subtitle": "",
"arg": "KRxGVayJM1ddrjJSwh3Y9U",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
},
{
"title": "2020 IT Policy Attestation",
"subtitle": "",
"arg": "LZjBKeTMuLxtEQJxBT9ZGW",
"valid": true,
"icon":
{
"path": "icons/todo.png"
},
"mods": ""
}
]
}
I'd try to debug it further, but I'm kind of at a loss as how all the pieces of the workflow chain together. I think that json should go straight into the Alfred script filter? I did try running the "Sample Code" AppleScript that is present in the workflow, but no matter what combination of argument (or lack or argument given), no results are show. For example, running this code in Script Editor (I have 2 results with email in the title, also tried ""
, and removing with argument "email"
completely):
tell application id "com.runningwithcrayons.Alfred" to run trigger "showToDosInProject" in workflow "com.xilopaint.alfredapp.things" with argument "email"
generates this result in the workflow console:
[23:10:26.055] Things[External] Processing complete
[23:10:26.068] Things[External] Passing output 'email' to Script Filter
[23:10:26.213] Things[Script Filter] Queuing argument '(null)'
[23:10:26.714] Things[Script Filter] Script with argv '(null)' finished
[23:10:26.718] ERROR: Things[Script Filter] Code 1: 0:74: execution error: Things3 got an error: Can’t get project id "" of application "Things3". (-1728)
In all attempts, the console logs have the same error, referencing ...Can’t get project id ""...
.
Anything else I can try to figure out what's going on? Am I just using it incorrectly?
Thanks!