Git Product home page Git Product logo

osx-open-winfs's Introduction

osx-open-winfs

Open a network file path with Windows style.

animation

Features

  • Supporting SMB file server.
  • Keeping its hierarchy: Once the volume is mounted, it allows you to move to parent directory from the first path.
  • Copying feature: Storing file/directory path with Windows style to the clipboard.
  • Multi-byte character like 日本語 can be handled.
  • Authentification feature: User & Password can be used for logging in (Fixed user can be used. Please refer to [Customize](# Customize))

Install

  • Execute following commands (sudo privilege is necessary).
   $ 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.

animation

You can check from Service Prefereces -> Keyboard -> Shortcuts -> Services.

Usage

GUI

Open the path with Windows style

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.

Copy the path with Windows style

Select the particular file or directory.

Then click Services -> Copy WinFsPath

CLI

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'

Customize

Let's use particular username and password ALWAYS.

  1. Go to ~/Library/Services/
  2. Duplicate ~/Library/Services/Open WinFsPath (Guest).workflow.
  • And rename it as you like. i.e, Open WinFsPath (MyUser).workflow
  1. Double click the file, open Automator and edit it as following, and overwrite it.
set theUser to "MyUsername" -- Fill in the username you want to use.
set thePass to "MyPassword" -- Fill in its password.

animation

Finally, the new workflow is available.

Uninstall

  • Execute following commands under the repository's directory.
   $ 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

License

This software is released under the MIT License, see LICENSE.

osx-open-winfs's People

Contributors

greymd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

hi64m chiaki-kyan

osx-open-winfs's Issues

Catalina 以降に未対応

Catalina 以降はルートディレクトリ / 配下に書き込みができなくなったため、sudo make install でエラーとなります。
参考

Makefile の修正(他?)が必要になります。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.