URL Handler (c) 2017 by Adrian Zaugg under GPLv2 Since afp:// URLs (and maybe ftp, smb, etc.) passed to the Finder do get mounted somewhere down the path submitted and not under their share point, this script handles those URLs and let them get mounted like it used to be in the good old days of OS X. It opens a Finder window changed into the desired folder selecting the file indicated if applicable. Requirements Runs on OS X. Installation Just copy the URL Handler application found in the distribution DMG to your Utilities folder or anywhere you want on your machine. Since URL Handler is not code signed, right-click the application and chose "open". Confirm to open the application. Configuration URL Handler doesn't need to be configured. Usage If you are unhappy how the Finder mounts AFP URLs you may use URL Handler to handle AFP URLs. Set the application providing the URLs to pass them to URL Handler instead of the Finder directly. You may try this also with URLs for FTP, SMB or CIFS. If you visit a web page in Firefox for example, that contains URLs pointing to an apple file server, like "afp://my-server/share_point/folder/subfolder/file" and you click on that link, the Finder will mount the share under "/Volumes/subfolder". If you prefer to get it mounted under "/Volumes/share_point/folder/subfolder", set Firefox to use URL Handler to handle AFP URLs. To configure Firefox for this, first turn processing of AFP URLs on: - type "about:config" in the address bar of Firefox - confirm to be careful, when it asks - search for "network.protocol-handler.external.afp", and - double click the entry to change its value to "true". ...then, - open Firefox' Preferences (under the hamburger style tool bar icon) -> Applications and choose for "afp" to "ask always". - click on an AFP URL (or write afp://my-server into the address bar) and point to open it in URL Handler. Uninstallation Drag URL Handler to your trash and empty it. URL Handler does not write any files to your computer's disk. The applications you point to URL Handler may take a note somewhere, Firefox for example in your profile folder in the file "mimeTypes.rdf". License URL Handler stands under the GNU Public License Version 2. You can find the full license within the distribution DMG. You may not charge money to distribute URL Handler. Source URL Handler was written in Apple Script, using a little bit of shell script and almost no JavaScript. You can find the script in the distribution DMG. Download The newest version of URL Handler can always be found under: ftp://ente.limmat.ch/pub/software/applications/URLHandler/ or https://ente.limmat.ch/ftp/pub/software/applications/URLHandler/ Bugs Probably some. Please report back. A currently known issues is: I don't know how to bundle an application in AppleScript Editor and pass the argument "CFBundleURLTypes" to the Info.plist file to register URL Handler as a handler for the AFP protocol. If you know, please tell me. Credits Thanx to Patrick (http://blackvariant.deviantart.com/) for the icon set and all those nice people answering questions throughout the net. Feedback Please use the web form under: http://ente.limmat.ch/feedback/ Version History v0.0.5 2017-01-17 Security issue corrected: Sanitize URL to process with jsc v0.0.4 2017-01-17 use jsc to decompose URL, corrections in the README v0.0.3 2017-01-17 handle localized "Network" folder, additions to the README v0.0.2 2017-01-16 thorougher checks on the URL, better percent-decoding, better handling of Finder v0.0.1 2017-01-16 initial release Enjoy, Adrian.