Path and filename in text format
How do I write the path and filename for a document, spreadsheet, etc. in text format?
When I go to Finder and click on an item whose path and filename I want to capture, I see something like this:
Macintosh HD > Users > myname > Dropbox > Recipes > Blueberry Pie.odf, but I don't think that's the proper way to write this in text format, and I can no longer seem to find a way to copy and paste this.
This is for a command line application, and it needs to be technically correct so that I don't get error messages. When I searched online, all I got was older references telling me ways to obtain and capture this info that no longer work.
Thanks.
High Sierra 10.13.6