2

I want to create a script that will always run in Windows Explorer that will take a Mac OS X path and convert it to a Windows path automatically. So if I receive a Mac path and am working on Windows I can copy the Mac file path into Explorer and it will resolve to the proper location.

Example:

Mac Path: file:///Volumes/file_server/projects/foo
Win Path: Z:\projects\foo

Is there a way to add in this functionality to Windows?

Unihedron
  • 10,902
  • 13
  • 62
  • 72
jaysonp
  • 21
  • 2
  • Could you specify what you actually want. You haven't done so. Would a regex that converted file:///Volumes/file_server/ into Z:\ suffice? – David Heffernan Mar 23 '11 at 19:24
  • I'm actually looking for how I can get a script or addin to run in Windows Explorer and resolve the paths correctly. Any script language will do. I'm capable of figuring out the regex. I'm more trying to figure out how to extend behavior in Windows Explorer. – jaysonp Mar 23 '11 at 21:11
  • @jaysnop That's not going to be possible in an easy fashion I suspect. – David Heffernan Mar 23 '11 at 21:15
  • I didn't expect it to be easy, otherwise I wouldn't be asking for help. :) – jaysonp Mar 23 '11 at 21:38
  • Explorer doesn't really do add-ins, to the best of my knowledge. How do you want to get this path into Explorer? Do you have any UI in mind? – David Heffernan Mar 23 '11 at 21:43
  • copy and paste. Someone sends me a Mac file path, I copy it and paste it in the address bar of Windows Explorer and it resolves properly. – jaysonp Mar 24 '11 at 00:03
  • How is an absolute file path going to resolve correctly on a complete different machine? You're leaving out some crucial bit of information here, and it probably has something to do with a network file system, given your use of 'Z' as a drive letter. – user57368 Mar 24 '11 at 00:32
  • That is kind of what I am asking. Ideally, you paste the path into the address bar, when you hit go/enter and the event triggers which will call a script that resolves the path then updates the address bar path with the corrected PC path. – jaysonp Mar 24 '11 at 01:25
  • Basically, I'm asking for a solution to help resolve the paths so a PC user can easily use a Mac file path, both of which are pointing to the same server. – jaysonp Mar 24 '11 at 01:29

0 Answers0