I am new to Keyboard Maestro. I am using KM 9.2 on El Capitan 10.11.16. I am a user of the Obsidian app and I'm trying to automate the capture of calendar events then paste them into my daily note, which is just a local markdown file. I am using a time of day trigger, then I execute a shell script to run a utility called iCalBuddy that reads my calendar and formats the events and it is pasted to the clipboard. So far this all works fine. The next step is where I'm having trouble. I would like to create a file with today's date in my
folder. The name of the file has the date format "YYYY-MM-DD.md". I would like to paste the contents of the clipboard into this file and write it. I could use some guidance on how to do this. Thanks for your help. Here is a screen shot of what I have so far:
Thanks Chris, appreciate the help. I was able to get it to work writing the output to the clipboard. I think that it was because KM was handling the clipboard operations. I tried it using your guidance and I was unable to get past a syntax error in the shell script. It's just my inexperience with shell script syntax.