Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

hyperlink to file on local server?

I know this question has been around for decades, wondering if it was ever/will ever be possible?


on windows, I can have a direct adress to a local server file/folder and email it as a link (hyperlink).

For example, if someone asks me where is a certain file, i can go look for it, then after finding it, insert hyperlink or paste the adress to him like this:


\\nameofserver\folder\folder\subfolder\document-name.extension


i know you can do internet hyperlinks and direct links to a file on a mac. but nothing as simple as a hyperlinked file to a local file vault server, for which both or all parties have shared access.

iMac, Mac OS X (10.5.8), macpro, ipad, iphone, macbook, SE..

Posted on Sep 24, 2013 2:43 PM

Reply
Question marked as Best reply

Posted on Jun 6, 2017 7:31 AM

marelialignandpull

It is a bit long... changing all the spaces to %20 manually so i will only use this when really necessary (although I love my hyperlinks...).

You could try crafting an Applications -> Automator workflow app to do all the work for you. Something like:

User uploaded file

You will need to modify the 'share' variable and 'echo' command to suit your needs for what your hyperlink should look like


Save this as an application


Then you can drag and drop files on top of the app you created, and it should load the clipboard with something like

afp://myMacName/myShareName/path/to/the/file

and ALL spaces will be replaced with %20


I'm sure you will need to play with this just a bit to get it the way you want it.


Everything in the 'echo' command can be changed, except maybe the ${f//\ /%20} which is the magic that turns your file path spaces into %20.


But the 'afp' can be changed. The :// can be changed. The ${host} can be changed (although this should give you your Mac's network hostname). The ${share} can be changed by changing the 'share=' above, or if you do not need a share name, remove it.

9 replies
Question marked as Best reply

Jun 6, 2017 7:31 AM in response to marelialignandpull

marelialignandpull

It is a bit long... changing all the spaces to %20 manually so i will only use this when really necessary (although I love my hyperlinks...).

You could try crafting an Applications -> Automator workflow app to do all the work for you. Something like:

User uploaded file

You will need to modify the 'share' variable and 'echo' command to suit your needs for what your hyperlink should look like


Save this as an application


Then you can drag and drop files on top of the app you created, and it should load the clipboard with something like

afp://myMacName/myShareName/path/to/the/file

and ALL spaces will be replaced with %20


I'm sure you will need to play with this just a bit to get it the way you want it.


Everything in the 'echo' command can be changed, except maybe the ${f//\ /%20} which is the magic that turns your file path spaces into %20.


But the 'afp' can be changed. The :// can be changed. The ${host} can be changed (although this should give you your Mac's network hostname). The ${share} can be changed by changing the 'share=' above, or if you do not need a share name, remove it.

Jun 6, 2017 3:15 AM in response to Alyssa KT

Didn't work for me, as the spaces in the folder & file names break the link. And when i try to enter this link as a hyperlink, it won't let me due to the spaces already mentioned. I would rename everything to test it but its a large server with many users so i'd rather not mess with it to be considerate with my colleagues.


i wish there was a way!

Jun 6, 2017 6:08 AM in response to marelialignandpull

marelialignandpull wrote:


Didn't work for me, as the spaces in the folder & file names break the link. And when i try to enter this link as a hyperlink, it won't let me due to the spaces already mentioned. I would rename everything to test it but its a large server with many users so i'd rather not mess with it to be considerate with my colleagues.


i wish there was a way!

As an experiment, try replacing spaces with

%20

which is what URL's do to handle spaces in web links


Not sure if it will work, but as an experiment, it is worth a try

hyperlink to file on local server?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.