Open and close one app at the specific time

Hi all ,
i’m new with KM and i have a question.
it’s possible to open an application at the specific time and close it after x hours in the same macro ?


You could have a macro triggered at a specific time that launched the application, pauses for N*3600 seconds and then quit the applications.

That would be fine, but its a bit fragile since the macro could be canceled (or Keyboard Maestro Engine could be quit and relaunched for some reason or whatever). Generally it would be better to have two macros, triggered at two times, that launch and quit the application.

thanks a lot