pstadler Posted March 20, 2013 Share Posted March 20, 2013 (edited) This is a workflow to mount your network shares with automatic discovery. No configuration or bookmarks required! Download — stable version. Please report problems here. Your computer won't explode and your shares are safe, I promise. Troubles? Make sure that both, Apple Filing Protocol (afp) and Samba (short smb, QNAP calls it "Microsoft Network") are enabled on your NAS. Due to the nature of the protocols and the available tools on OSX, both of them are required in order to disover network shares in your network. Also note that already mounted shares are not listed in Alfred. Enable guest access to the NAS, not for a specific share, but for the system in general if things don't work. The source code is available here: https://github.com/pstadler/alfred-mount Edited April 8, 2013 by Patrick Stadler StDt, idea4IT, Enhorn and 1 other 4 Link to comment
pstadler Posted March 21, 2013 Author Share Posted March 21, 2013 There was a problem if the name of your target host contained spaces or underscores. This is now fixed. Link to comment
nibelune Posted March 21, 2013 Share Posted March 21, 2013 great... but it doesn't fully work here. it doesn't discover anythin, i have to type host and share.... Link to comment
pstadler Posted March 22, 2013 Author Share Posted March 22, 2013 (edited) Try to enable guest access to the NAS, not for a specific share, but for the system in general. Also make sure, that both AFP and SMB services are activated. If this doesn't help, open Terminal.app, run the following commands and post the output here. dns-sd -B _afpovertcp._tcp smbutil view -g //<HOSTNAME-OF-YOUR-NAS> (e.g. smbutil view -g //my-nas.local) The seconds command is used by alfred-mount for getting a list of available shares as a guest, that's why you should enable guest access. Edited March 22, 2013 by pstadler Link to comment
nibelune Posted March 22, 2013 Share Posted March 22, 2013 (edited) mmh... doesn't helpMacBook-Pro-de-Benoit:~ nibelune$ dns-sd -B _afpovertcp._tcpBrowsing for _afpovertcp._tcpDATE: ---Fri 22 Mar 2013---16:48:34.168 ...STARTING...Timestamp A/R Flags if Domain Service Type Instance Name16:48:34.168 Add 3 6 local. _afpovertcp._tcp. MacBook Pro de Benoît16:48:34.168 Add 3 5 local. _afpovertcp._tcp. MacBook Pro de Benoît16:48:34.168 Add 3 5 local. _afpovertcp._tcp. Freebox Server16:48:34.168 Add 3 6 local. _afpovertcp._tcp. Freebox Server16:48:34.169 Add 2 5 local. _afpovertcp._tcp. readynas (AFP)^CMacBook-Pro-de-Benoit:~ nibelune$ smbutil view -g //readynasShare Type Comments-------------------------------media Disk Media Server Sharebackup Disk Backup Shareresources Disk Resources ShareIPC$ Pipe IPC Service (readynas)softwares Disk Software Share5 shares listed Edited March 22, 2013 by nibelune Link to comment
pstadler Posted March 22, 2013 Author Share Posted March 22, 2013 I released a new version 1 minute ago, check out if this works for you now. Link to comment
pstadler Posted March 22, 2013 Author Share Posted March 22, 2013 There's a new release which filters out duplicate hosts. Link to comment
StDt Posted March 23, 2013 Share Posted March 23, 2013 For all QNAP users: To have the automatic detection of Shares working you have to activate beside the Apple Networking (AFP) also the Microsoft Networking on your QNAP NAS under "Network Services" > "Microsoft Networking". Link to comment
pstadler Posted March 23, 2013 Author Share Posted March 23, 2013 For the record: "Microsoft Network" is just a friendlier name for Samba. I updated the initial post to list the requirements. Link to comment
nibelune Posted March 23, 2013 Share Posted March 23, 2013 no luck with shares detection on my side. afp and smb are both enabled, guest access is on. Link to comment
pstadler Posted March 23, 2013 Author Share Posted March 23, 2013 Make sure you're running the latest version. Link to comment
nibelune Posted March 23, 2013 Share Posted March 23, 2013 i just reinstalled it. no doubt it's the latest version. Link to comment
pstadler Posted March 24, 2013 Author Share Posted March 24, 2013 I just implemented unmount to disconnect mounted shares. Grab the latest version with the download link in the first post. Cheers, Patrick Link to comment
pstadler Posted March 26, 2013 Author Share Posted March 26, 2013 Fix: matching user input is now case insensitive. Grab the latest version with the download link in the first post. Link to comment
LostInInaka Posted March 31, 2013 Share Posted March 31, 2013 Any chance of getting NFS support? Tried playing around with it a bit, but just can't wrap my head around it (could be because I'm dead tired, but still...) Or any leads on what needs to be done to support other mounting formats would be great too! Link to comment
pstadler Posted April 1, 2013 Author Share Posted April 1, 2013 Currently I don't have the setup ready to work on NFS support. If I find time, I might give it a try. Feel free to hack on the workflow, would be great if you share your results. Link to comment
twleung Posted April 6, 2013 Share Posted April 6, 2013 I just tried this, but after it type mount, Alfred says "Discovering shares..." and just does nothing after that... Link to comment
pstadler Posted April 8, 2013 Author Share Posted April 8, 2013 Enable guest access on the NAS. You don't need to give access to any share, just enable it in general. Link to comment
masnzm Posted October 2, 2014 Share Posted October 2, 2014 Thanks for the workflow. How can I navigate in the network drive or mooted drive using Alfred? Please point me in the right direction Look forward to hearing from you Link to comment
pstadler Posted October 6, 2014 Author Share Posted October 6, 2014 This is just for connecting/disconnecting from remote drives. Link to comment
Kevllar Posted February 23, 2017 Share Posted February 23, 2017 Hey thanks for this. Still working in 2017! How can I connect to other Macs on my network? My QNAP shows up but does this work for Mac shares? Link to comment
pstadler Posted February 24, 2017 Author Share Posted February 24, 2017 (edited) Glad to hear that. I'm using it frequently, means you can count on an update if this should break in the future. Regarding your question: Enabling SMB in "System Preferences > Sharing > File Sharing > Options..." could potentially solve this problem. Please let me know if this works for you. Edited February 24, 2017 by pstadler Link to comment
Kevllar Posted October 2, 2017 Share Posted October 2, 2017 (edited) Whoa! Just saw this months later. Still working fine in Oct 2017! Can you update the workflow so if I know the name of the shared folder I can just type it in? Then hopefully that either mounts it straight away or brings up a login prompt? mount music Bonjour is great but it's also kinda slow when you have multiple shares. Thanks so much. P.S. If you have even more time could you implement a shortcut key to save a folder as a favorite? For example, CMD + Enter pins a folder so that next time "mount" is envoked it displays the Favorite folders beneath and users could select them without waiting for auto discovery. This could save time also. Thanks. Edited October 2, 2017 by Kevllar Link to comment
pstadler Posted October 2, 2017 Author Share Posted October 2, 2017 There are similar workflows without auto-discovery available, you might wanna try these. Link to comment
Kevllar Posted October 3, 2017 Share Posted October 3, 2017 Which ones do you mean? Your workflow is the number hit on Google. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now