I'm working on an AppleScript to mount our Active Directory Home Shares and I've come up with the following part that looks at the logged in users "SMBHome:" and it gives me the users home share but the slashes are in the wrong direction "\" and need to change them to "/".
So far the AppleScript is:
set username to do shell script "whoami" set homepath to do shell script "dscl '/Active Directory/CAMPUS/All Domains/' -read /Users/" & username & " |grep SMBHome:"
When run this gives me an output of
I'd love to have the next step replace the back slashes with forward slashes and remove:
With a final outcome of:
Is this possible?