I'd like to create a macro that grabs the URL from a .webloc file selected in Finder, and then saves that URL to a variable.
Is there a way to do this? Perhaps it requires a script?
I'd like to create a macro that grabs the URL from a .webloc file selected in Finder, and then saves that URL to a variable.
Is there a way to do this? Perhaps it requires a script?
and I think you should also be able to write something like this:
Webloc URLs selected in Finder.kmmacros (3.1 KB)
return Application("Finder")
.selection()
.flatMap(
x => "Web internet location" === x.kind()
? [x.location()]
: []
)
.join("\n");
Thank you, @kevinb and @ComplexPoint!