logoalt Hacker News

etrautmannyesterday at 8:40 PM2 repliesview on HN

A path bar anywhere in the interface?

I also want this to be able to copy a file’s path. Right now I’m not even sure how to do that aside from cmd-i to get info and then clunkily drag select the parent dir to copy. Repeat for the file name. Am I insane or is there a better way? Just use terminal? For a time I used pathfinder which had a feature to copy the full path but I ended up hating the subscription and constant feature churn.


Replies

CharlesWyesterday at 9:20 PM

It's not unusual for Mac users to create custom shortcuts for things like this using built-in and 3rd-party tools like Shortcuts, Automator/AppleScript, Keyboard Maestro, Hammerspoon, etc.

For copying the path of a file specifically, in Finder you can hold Option and then pick EditCopy as Pathname.

Wevahyesterday at 9:24 PM

Context menu → hold Option; “Copy” will change to “Copy <file> as Path”. (Sometimes you can just drag and drop the file to where you want to paste, but that depends on the destination app and so isn’t consistent.)