I just tried to write a simple macro to accelerate the deletion of certain cookies from Safari:
- It opens Safari’s prefs window,
- goes to the ‘Privacy’ tab,
- presses the ‘Details…’ button,
- pastes-in the search string,
- presses the ‘Remove All’ button and
- confirms the modal dialog
The problem comes with point 5: It does press the ‘Remove All’ button (you can tell this because the confirmation dialog pops up), but then it breaks with these errors:
23.9.15 23:49:59,417 Keyboard Maestro Engine[83445]: Keyboard Maestro Engine: Assertion Failed: err == 0 , file: /Users/peter/Keyboard Maestro/Project/Source/Actions/APressButton.mm:85, value: -25204
23.9.15 23:49:59,425 Keyboard Maestro Engine[83445]: Keyboard Maestro Engine: Press Button ‘Remove All’ failed to find button. Macro ‘Delete Cookies’ cancelled (while executing Press Button ‘Remove All’).
I don’t understand this error message, because apparently it already did press the button. [Please note also the strange file path in the first error, which does not exist on my computer.]
When I uncheck ‘Failure Aborts Macro’ at the ‘Press Button ‘Remove All’’ action, the macro stalls at this point for about 6 seconds and then continues successfully.
KM 7.0.1; OS 10.11 (15A282b)
Here is the macro. If somebody wants to help me and test the macro, make sure the string for %Variable%Search Term%
matches an existing (and dispensable) cookie in your Safari.
Thanks in advance for any help.
Tom