Any assistance would be appreciated.
Found this AppleScript, which seems to work well as a Keyboard Maestro macro:
tell application "Safari" to activate
tell application "System Events"
click menu item "Clear History…" of menu 1 of menu bar item "History" of menu bar 1 of process "Safari"
try
click button "Clear History" of front window of process "Safari"
on error
try
click button "Clear History" of sheet 1 of window 1 of process "Safari"
end try
end try
end tell
Thanks.
1 Like