Skip to content

An Alfred Workflow to swap paths between Windows network locations and Mac-style SMB or volume mounted paths.

Notifications You must be signed in to change notification settings

mttjhn/alfred-pathswapper

Repository files navigation

Path Swapper (Download)

Path Swapper Example Screencast

This is a quick workflow to convert Mac paths to Windows paths and vice versa. For those who work in a Windows environment and often need to "translate" a mounted directory path (e.g. /Volumes/projects/etc) to a more friendly Windows UNC path, or the other direction. This workflow works based on data from the clipboard. To use, copy the text you'd like to transform (either from UNC/Windows or Mac) and activate Alfred, using the pathswap keyword, and your clipboard will be converted, with options to either view the file or copy a Windows path.

Requirements

  1. Alfred App 2 or 3
  2. Alfred Powerpack

Commands

  • pathswap
    • Converts the current clipboard contents from a Windows (UNC) path to a Mac path, or alternately from a Mac "Volume-style" or SMB path back into a Windows (UNC) path. For example, \\server\share\folder would result in /Volumes/share/folder. Similarly, smb://server/share/folder/ or /Volumes/share/folder would translate back to \\server\share\folder\ as well.
    • Note for existing users: the "volume mappings" that previously were required in pathswapper.pyfile are now no longer needed or supported, since I'm using the df command to determine network locations. 😁

Contributors

About

An Alfred Workflow to swap paths between Windows network locations and Mac-style SMB or volume mounted paths.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages