Trying to do things when application starts does not work

Im am trying to automatically restore the old tab and window state of safari after a relaunch.

For this I tried to use the following macro

It seems, that the trigger is not triggered. Does anyone have a better idea how to find out if safari has started?

Hey There,

Firstly I'm puzzled that you're doing this via Keyboard Maestro when Safari has that option built-in.

Safari General Prefs panel:

The issue you're experiencing is most likely a timing issue.

Safari hasn't fully loaded before you're trying to activate the menu item.

You can use a statement like this one to make your macro wait until Safari is really ready to accept input.

-Chris

1 Like

Thanks @ccstone for showing me the build in function. Sometimes one does not see the easy solutions.