To open SQLite Things.app database run this command in Terminal.app:
$ sqlite3 ~/Library/Containers/com.culturedcode.things/Data/Library/Application\ Support/Cultured\ Code/Things/ThingsLibrary.db
In SQLite command-line type this query to get your tasks stats:
sqlite> .mode column
sqlite> .header on
sqlite> select zscheduler, zstatus, ztrashed, count(*) from ZTHING where z_ent = 13 group by zstatus,ztrashed order by Z_pk desc;
ZSCHEDULER ZSTATUS ZTRASHED count(*)
---------- ---------- ---------- ----------
1 0 0 132
3 0 1005
0 1 84
3 1 2
2 0 6
Explaination:
- Z_ENT equals
13represents tasks - ZTRASHED equals
1is obvious - shows that element is deleted - ZSTATUS equals
0represents items not yet done - ZSTATUS equals
3represents items that are done and in Logbook - ZSTATUS equals
2represents items that were canceled - ZSCHEDULER equals
1represents items that are planned to be done (as scheduled or recurring tasks or those in section Today)
BONUS:
- ZSCHEDULER =
1AND ZSTART =1AND ZTRASHED =0- means it's in Things Today section :) - Projects can be found by: ZCOMPACT =
0AND Z_ENT =13 - Z_ENT equals
9are Contacts, and14are tags
Rest of fields are self explanatory ( ZTITLE or ZSTARTDATE or ZNOTES or ZPARENT).
P.S. I don't recommend direct edits on this SQLite DB. If you don't want to corrupt your data use it only for SELECTs.
Happy hacking!