I created this little macro just to test the variable to application and to window actions.
Basically, it should do nothing since it is restoring the current application and window.
Both last actions generate an error message shown below
Thank you very much
TEST App to Variable then Show Variable.kmmacros (23.5 KB)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MACRO ERROR OCCURRED on 2021-08-19 12:55:59
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This info was pulled from the KM Engine Log for the
Last Macro error that occurred.
MACRO:
--------------------------------------------------------
TEST App to Variable then Show Variable
--------------------------------------------------------
Action Type: Use Variable to Set Application By Name
Action Name: Use Variable “CurrentApplication” to Set the Front Application by Name
ACTION ERROR: for variable CurrentApplication
KM Engine Log:
--------------------------------------------------------
Use Variable to Set Application By Name failed to for variable CurrentApplication In macro “TEST App to Variable then Show Variable” (while executing Use Variable “CurrentApplication” to Set the Front Application by Name
--------------------------------------------------------
Log File: ~/Library/Logs/Keyboard Maestro/Engine.log