Many times a day, my workflow requires me to copy file paths to distribute to others on my team. I do that by right-clicking the file in question, holding down option and clicking "copy [file name] as Pathname". It works fine, but since the files in question are shared on Google Drive, I get a long path with a bunch of extra details specific to me and not useful for others:
but what I really want is just the last part:
Is there a way to set up a Shortcut or other script that automatically truncate that file path when I copy it?
I would prefer not to install third-party software to do this, if at all possible.
'/Users/xxx/Library/CloudStorage/GoogleDrive-xxx@xxx.com/Shared drives/Projects Active/Project Name/Subfolder/Subfolder/filename.pdf'
but what I really want is just the last part:
Project Name/Subfolder/Subfolder/filename.pdf
Is there a way to set up a Shortcut or other script that automatically truncate that file path when I copy it?
I would prefer not to install third-party software to do this, if at all possible.
Last edited: