Skip to content

Instantly share code, notes, and snippets.

@krasnoukhov
Created December 13, 2012 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krasnoukhov/4276377 to your computer and use it in GitHub Desktop.
Save krasnoukhov/4276377 to your computer and use it in GitHub Desktop.
Applescript for opening Win network paths in OS X
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