Get the full network path to a file on a Mac terminal

I am trying to get a network file page, for example. smb://server.local/tech/file.pdf

You can see this information in the Get Info window, but I don’t see a way to get it using the command line (or even Applescript).

Edit: I currently have this:

 on open filePath set filePath to POSIX path of filePath set the clipboard to filePath as text end open 

But he only copied the installed path, not the smb: // path.

+4
source share
1 answer

Automator will do it.

  • Request Servers
  • Copy to clipboard

Full network path

Download it here.

+1
source

All Articles