Open porg opened 3 years ago
Until iCalBuddy works correctly in that regard, you may use this AppleScript workaround:
osascript -e 'tell application "Calendar" to count events of calendar "myCal"'
Returned plausible results under macOS 11.2.1 Big Sur.
Reproduction
Version: iCalBuddy 1.10.1 on macOS 11.2.1
icalBuddy -ic "calX" eventsFrom:2000 to:2030 | egrep "^• " | wc -l
egrep
with a RegEx that matches only event titles by matching a bullet character only at the very line start, and not bullets somewhere else in event attributes.wc -l
counts the occurenceExpected
Actual
How I realized the bug
Turns out to be reproducible with sample calendar
Again: Fewer results for larger ranges, simply not comprehensible.