[Dates] Generate File Named Based on Day of Week [Example]

###MACRO: [Dates] Generate File Named Based on Day of Week [Example]
~~~~~ VER: 1.0    2016-08-01 ~~~~~
####Download
[Dates] Generate File Named Based on Day of Week [Example].kmmacros (12 KB)


Author: @JMichaelTX

PURPOSE: Create File Name Based on Day of Week (Sunday)

BASED ON THIS USER QUESTION:

I want to create a macro that, when invoked, takes the current day of the week and:

   • if it is a Sunday, opens a file called foo-yyyymmdd.md (ex: foo-20160731.md) using the current date.
   • If not a Sunday, it opens a file called foo-yyyymmdd.md using the upcoming Sunday's date.

REF: Create file based on day of the week

NOTE: This macro does NOT open the file, but only creates the file name


###To Learn More about Dates and Keyboard Maestro, see:

Please feel free to ask questions about this macro and topic.



###Example Results