Network file path to clipboard for Windows/Mac environment.
Hello, sorry for the long read but I´ll very much appreciate any help on this.
I´ve been searching for this online for quite some time and to some extent I´ve been finding things but never found exactly what I was looking for, and I am sure I am not the only one with this problem. Please note I am very new to Applescript.
We just deployed around 30 macs for a department in my workplace and we are no longer a Windows only environment.
One of the main difficulties I´ve found no solution to during this implementation is network file path sharing between a Mac to a Windows user i.e \\servername\folder\file.ext.
We managed to find a script to open file paths from Windows to Mac, it installs as a Service which it mounts the drive using smb and also inverts the \.
But Mac to Windows, everything I´ve found online, from contextual menus, to services, to automator, to scripts is to copy the file to the clipboard with the same result as if you drag the file to the terminal which results in /Volumes/folder/file.ext but of course Windows cannot read this path.
I´ve also tried to tell the script to replace the /Volume for \\servername but if the volume is mounted deep into subfolders then the link is broken as not the whole path is displayed.
The only place I´ve noticed that you can find this exact information in Mavericks is when you hit Get Info, it displays Kind, Size, etc as well as Where: /Volumes/folder and also the field Server: smb://servername/folder/file.ext. Is there a way to retrieve this in Applescript so that we can just delete the smb: part and change the / to \ and finally copy it into the clipboard to send the link via email between departments?
Thanks for the help.
iMac, OS X Mavericks (10.9.4)