Hi...
I want to modify an existing macro, "MACRO: Display HTML Window with Calendar, Time, & Power" I've added here.
I would like to lose the power and time read-outs and add the next two months calendars.
I would be grateful for any help or advice.
Thank you!
Gregg
I'd suggest (from reading your specs) you don't want this particular macro at all. You just want to see a calendar with a few months on it.
The Unix cal command would seem to be the easiest bet (embedded in an Execute a Shell Script action but the macOS version of cal is frustratingly short of options.
I did use this macro for a while but it always ran slowly for me so I went a completely different route than doesn't include Keyboard Maestro. I now use Ubericht (discussed in the Keyboard Maestro thread Ăśbersicht - display widgets on your desktop to display battery, processes, upcoming birthdays, reminders, a multi-timezone clock, the weather and a two-month calendar.
Each of those is an indendent widget that is always displayed on the desktop (no trigger required). And Ubersicht and the widgets are all free.
Here's what the calendar part of my desktop looks like (but other widgets displaying other formats are available and you can always roll your own):
Each of my monthly calendars is an independent widget, so it would be pretty easy to 1) find a widget whose calendar you like and 2) set multiple copies to display sequential months.
(I took these a bit further by having them read JSON data files to highlight certain dates and doing calculations for other important dates in the month, but the basic calendar display knows the difference between a weekday and weekend.)
(I've sent an email to the maintainer, so hopefully it will be up-to-date soon.)
@mrpasini is right – there's an unbelievable difference between the 2004 BSD version of cal that comes stock with macOS and the most currently available version. (Bad Apple!)
Running  gcal .  in the Terminal gets you this simple 3 month calendar:
2018
June July August
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 1 2 3 4 5 6 7 1 2 3 4
3 4 5 6 7 8 9 8 9 10 11 12 13 14 5 6 7 8 9 10 11
10 11 12 13 14 15 16 15 16 17 18 19 20 21 12 13 14 15 16 17 18
17 18 19 20 21 22 23 22 23 24 25 26 27 28 19 20 21 22 23 24 25
24 25 26 27 28 29 30 29 30 31 26 27 28 29 30 31
And here's what it looks like when run from an Execute a Shell Script action in Keyboard Maestro:
2018/07/29 13:17 CDT -- macro changed to v1.01 -- improved to ignore Keyboard Maestro palettes and other windows.
Hey JM,
Sure.
To use either Homebrew or MacPorts it is necessary to install either the full version of Xcode, OR just its command line tools (which is a much smaller download).
Thanks Chris. That is very well done. Even I can follow it.
Thanks for recommending a unix package installer. That relieves the user of one more decision that most won't know how to make.
When I run the macro it moves my applications palette - not the calendar window.
I can't get it to move and resize the html window properly. Even when using a move and resize action.