Apple - How to translate between Windows and Mac -style file locations?

This site has a way to translate into a mac network location and open it: http://hints.macworld.com/article.php?story=20040322155331393

So you could easily save that as a text service and be able to select a windows network location, right-click it, and have it translated and opened.

I imagine you could sort of reverse the function and translate back into a windows network location string.

Here's how to set up a text service/quick action to convert to a Mac path and open it in Finder:

  • Open up Automator
  • Choose "Service" (called "Quick Action" in macOS Mojave)
  • Drag a "Run AppleScript" item from the library into the main area on the right.
  • Copy and paste this AppleScript into it: https://gist.github.com/2211017 (it wouldn't properly format in here)
  • Save it under "Convert and Open Windows Path" or whatever you like.
  • Select a path in an application, right-click it, and look for the service you created (it might be under a "Services" sub-menu)

Here's what your Automator service should look like: Automator Service Example