I'm imagining a custom link structure that can fill in the file path as an argument to a variable that is the local Dropbox location, thereby ignoring the computer-specific directory hierarchy and just looking at our individual Dropbox folders as the root
Assuming that you and all on your team has the default DropBox install location, you should be able to just provide them with a POSIX path like this: ~/Dropbox/SomeFolder/SomeFile.txt
It would be easy to write a Macro and/or script to get the path of the current file selected in the Finder, and convert it from an absolute path to a user relative path. It could then put the path on the clipboard, or with a bit more work, create a new email compose window, and paste into the body.
Let us know if you need more help. If you do need help be sure to tell us what mail client and macOS you are using.
We're using Slack to communicate, so simply putting it in the clipboard would suffice.
Going with your idea... I think it'll work, although since I have two computers with different Dropbox locations, the macro would have to translate incoming links based on my computer's Name (e.g. nrightnour's MacBook Pro), and on my co-worker's computer, be able to translate links from either of my computers' file structures with no user input. Should be possible.
My file paths:
Not quite sure how to do this type of thing in KM. Any help would be appreciated.
One approach would be to create a SymLink on each Mac that does NOT use the DropBox standard location if ~/Dropbox. So the SymLink file would be:
Stored in the user's home folder
Points to the actual Dropbox folder.
Then "~/Dropbox" should work for everyone, since the tilde (~) represents the user's home folder.
If Slack (or other app, like email) does NOT auto-convert the path to an actual link, then you will need to create a KM Macro to select the path, and use the "Open File in Default App", OR "Reveal File", whichever you prefer.
The only thing that would make this better is if I didn't have to program the other people's Dropbox locations into the macro, so that it was completely computer-agnostic.
Right now, in order to delete the user-specific directories, I have to check against all the possible Dropbox locations for all the computers – KM needs to know where Dropbox is located on the sender's computer in order to know how many charcters to delete from the pathname.
Only then can I prepend ~/Dropbox/ to the pathname, and reveal it in Finder.
Why do you need to do this if all members of your team have created a SymLink to the DropBox folder?
No you don't. Just use a KM RegEx search and replace.
Let us know if this works for you.
Here's an example:
(Note: This was written in KM9d8 Beta. KM9 Should be Released very soon. But you can easily convert it to KM8)
MACRO: Prompt For Dropbox File & Replace Start of Path with Tilde [Example]
**Requires: KM 9+ macOS 10.11 (El Capitan)+**
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))
#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/a/7/a7a9e543c7781ca0bbeaa4ce628c6e5eefd4774a.kmmacros">Prompt For Dropbox File & Replace Start of Path with Tilde [Example].kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**
<img src="/uploads/default/original/3X/d/b/db92fb6a3a3e0a279c1225c747e0230bf7138a5c.png" width="526" height="917">