Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to figure out how to add a variable to today's date in Keyboard Maestro. Can anyone help? Here is a screenshot of my current attempt - http://db.tt/RWcGGvE

As an example of what I'm trying to achieve, I want to be able to type '2' into a variable prompt, and have Keyboard Maestro spit out the date of two days from now.

share|improve this question
add comment

1 Answer

Use a shell script to execute the date command:

date -v +${KMVAR_Required_in_X_Days}d "+%Y-%m-%d"

man date in the Terminal for information on the date command man strftime in the Terminal for information on the output formats

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.