Created
December 13, 2012 13:25
-
-
Save krasnoukhov/4276377 to your computer and use it in GitHub Desktop.
Applescript for opening Win network paths in OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
set input to input as text | |
set output to do shell script "echo '" & input & "' | sed -e 's#\\\\#\\/#g' -e 's#^[ ]*#smb:\\/#' -e 's#[ ]*$##'" | |
do shell script "open " & output | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment