Automating OneDrive

Hi Guys,

Was hoping you could help me - I'd like to have a keyboard shortcut that clicks the share button in the right click finder menu and then clicks "copy link" in the resulting menu that shows up.

Screenshot 2020-02-29 at 09.33.50

I've tried the following and I can't figure out why it doesn't work:

Any ideas what I'm doing wrong ?

Hi James,

As far as I know, KM’s Select Menu action does not recognize the contextual menu; presumably, because it is created on demand.

In general for accessing that menu, you find tips in a variety of forum threads, in particular:

If you can’t make work any of these reliably, we could also try to write a script for accessing the Share button in a Finder window’s toolbar.