Open a network file path with Windows style.
MIT License
Open a network file path with Windows style.
$ git clone https://github.com/greymd/osx-open-winfs.git -b v2.1
$ cd osx-open-winfs
$ sudo make install
# /usr/local/mnt_openwinfs directory will be created.
Please make sure following Services are enabled.
You can check from Service Prefereces
-> Keyboard
-> Shortcuts
-> Services
.
Drag over the text which starts with \\
.
Then click Services
-> Open WinFsPath (Guest)
or Open WinFsPath (Auth)
Open WinFsPath (Guest) : Guest
and empty password are automatically used.
Open WinFsPath (Auth) : Fill in the username and password.
Select the particular file or directory.
Then click Services
-> Copy WinFsPath
openwinfs
command is available.
$ openwinfs '\\192.168.1.1\VolumeName\Dirname'
It works even...
# Network host is bound to particular domain name.
$ openwinfs '\\fsname\VolumeName\Dirname'
# File/directory name includes multibyte characters.
$ openwinfs '\\192.168.3.33\\.mp4'
Fill in second and third arguments ,if you need authentication.
$ openwinfs '\\fsname\VolumeName\Dirname' 'username' 'password'
# "Guest" and empty password are automatically used in case of single argument.
$ openwinfs '\\fsname\VolumeName\Dirname'
Let's use particular username and password ALWAYS.
~/Library/Services/
~/Library/Services/Open WinFsPath (Guest).workflow
.Open WinFsPath (MyUser).workflow
set theUser to "MyUsername" -- Fill in the username you want to use.
set thePass to "MyPassword" -- Fill in its password.
Finally, the new workflow is available.
$ sudo make uninstall
# ""IF YOU MIND"", please delete /usr/local/mnt_openwinfs directory.
## Before deleting it, please make sure no volume is not mounted under /usr/local/mnt_openwinfs directory.
$ mount | /usr/bin/grep -oE '/usr/local/mnt_openwinfs/[^ ]*' | xargs -I@ umount @
## And delete it.
$ rm -r /usr/local/mnt_openwinfs
This software is released under the MIT License, see LICENSE.