I have the only Mac in a PC office. When I receive a work email with a link to a file on the company network, the Mac does not recognize the "/" in the file pathname, so I cannot open the file by following the link.
I'd like to create a "convert PC pathname to Mac pathname" KM shortcut that will swap out "/" with "" and open the file.
Ideally, I would have the cursor to the link, type the trigger, and have the file automatically open.
I'm guessing you've got you slash direction wrong, and they're sending out
\TheServer\TheShare\Path\To\The\File.txt
...which you want to convert to a Mac-compatible format. Are you happy to just pop the folder up in the Finder and open the file yourself?
If you don't want to select the path manually then trigger the macro -- what's the email program? (I'm not saying that this can be done based solely on the insertion point, just that it might be doable.)
Here's a basic version to get you started -- change the hotkey trigger to suit.
Select the PC file path in Outlook, trigger the macro, and the Finder will (eventually) open the server directory with the file selected ready for you to open.
Three annoyances -- you have to manually select the text, it doesn't open the file, and it'll mount a new volume every time even if the share is already mounted. Consider it a temporary placeholder, pending a proper version using AppleScript...