MACRO or PLUGIN: Open or Refresh a URL in a Tab (Safari & Chrome)

Re the "can't convert types" error that stops this working with safari: I think I have fixed it, but I don't really understand the fix :slight_smile:
Replacing the line:
var result = _app.windows.whose(_not: [{document: null}]});
with:
var result = _app.windows
removes the error. It may have been required on an older version of safari? I've tested it with multiple safari windows, blank tabs, etc, and it seems robust.

I've attached my patched version here.

MACRO - Open or Refresh a URL in a Tab (Sub-Macro).v1.1a.kmmacros (1.7 KB)

2 Likes