News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Server Path

Started by Chris S, March 12, 2023, 12:11:53 PM

Previous topic - Next topic

Chris S

Is there a way to return the full path/alias to a file if it's located on an smb server on MacOS?

This is what I'm starting with:
> exiftool -filepath [dir]
/Volumes/[ServerName]/[Folder]/[file]

If it's on an smb server, would like it to return: smb://[VolumeName]/[ServerName]/[Folder]/[file]

Phil Harvey

ExifTool doesn't know any details about the filesystem itself.  Also, I wouldn't even know how to do this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Chris S

OK, thank you. I know it can be done with a combination of AppleScript and Terminal commands. Will consult some folks that I know can do this and see if they can help me... I have that code, it's just a bit over my head.