Nvalt devonthink8/22/2023 Thank you very much for the idea - I think that this will end up being the way I go, with a twist. I simply used JS because I’m at home there. The second filter inside the for loop over the months simply gets the records whose creationDate was this month.ĭisclaimer: The same thing is certainly possible in other programming languages like AppleScript and Python. In the script, the first call to filter builds the array last10years containing only the matching records whose creationDate was in the last 10 years. Those are added to the array returned by filter. It loops over all elements of an array, testing if they meet the condition supplied. The script relies heavily on the filter method for arrays. In my test case, though, it was blazingly fast. But I wouldn’t expect it to be fast, depending on the size of your databases and documents. How many DevonThink items do I have that contain the word ArgyBargy, broken down by month, for the last 10 years? I’ll continue to play around to see if there’s another way to do what I need. I could then search the Smart Group for ArgyBargy and get the answer I want.įundamentally, what I was hoping for was a way to take a Smart Group and sort/categorise the matches based upon things like Tag, or by the Created year/month/day/hour, or any of the other parameters that could appear in the drop-downs as you’ve got there for the Date Modified / Kind / Item. To answer that at the moment, I believe I’d have to create Smart Groups for items created for each month of every year for all of the years of data that I have. “How many DevonThink items do I have that contain the word ArgyBargy, broken down by month, for the last 10 years?” My need is the ability to quickly answer questions like: Thanks for the suggestion - I did see that as a potential avenue, but, my particular need would be pretty complicated to sort out with this approach.įair enough that I’m the only person that’s ever wanted this sort of statistical sub-categorisation of my DevonThink data the graphing is easy enough to handle via Numbers or some other app of course, but GETTING the statistics is the part that is going to be time consuming for me. It may be this is already present, but, I’m just overlooking it…but, any suggestions would be appreciated! Like a Smart Group that not just matches what I’m searching for, but, creates sub-smart-groups based upon any of the usual parameters DevonThink can search by. I know I can manually create searches for each month, but, it would be great if there’s some way to view this or even create “virtual groups” that function like Smart Groups, but have rules/conditions applied to them for sorting purposes. When did a certain phrase first occur, and then how often by day, or week (assuming the Created Date is accurate), etc. Similarly, I’d love some sort of a frequency histogram (or even just the numerical equivalent that I can dump into Numbers myself for graphing) based upon a defined search. The goal being to spot new or interesting trends over time. I know I can create a series of Saved Searches, but, that gets to be cumbersome, so, what I’m ideally looking for is a way to perform a search, and have the results displayed as a statistical summary, by user-selected parameters – rather than the search actually containing the matching items.įor example, I have a few dozen tags and I’d like to know how common certain tags are on a month-by-month basis. Things I’m not thinking of but might be useful.Other date-based summaries for Searches.Frequency of occurrence of a Tag, by year, month, week, day (or other time parameter).In particular, I’m looking for the easiest way to do things like: I’m wondering if the community has any suggestions on the best way to get more extensive statistics out of DevonThink and items stored within it.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |