Prerequisite:
The Path Bar needs to be enabled.
To enable, in the Finder menubar at the top left, click the following:
The Path Bar needs to be enabled.
To enable, in the Finder menubar at the top left, click the following:
Finder >> View >> Show Path Bar
1) Once the Path Bar is enabled, right-click on a folder item in the Path Bar and select "copy xxxx as Pathname" where xxxx is the item selected in the Path Bar
Reference: