'Is there a way using R to access the complete menu of options when right-clicking on a folder?

I am interested in writing a function that utilizes specific options from the menu that appears when right-clicking on a folder. (E.g., Get Info, Compress, etc.) Is this possible to do? I’m on a Mac if that matters.

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source