Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dcaccount

macrumors 6502
Original poster
Nov 17, 2013
317
14
Hello,

before upgrading to Sierra, to connect to my NAS, under Finder->go->connect to a Server, I used to type:

afp://user : password@server/share_name

with no pop up windows "Connect as".

Now, after the upgrade, after the command: afp://user : password@server, a "connect as" windows pops up and this is annoying.

Anyone knows how to skip this "connect as" window?

Thanks,
daniele
 
Hello,

before upgrading to Sierra, to connect to my NAS, under Finder->go->connect to a Server, I used to type:

afp://user : password@server/share_name

with no pop up windows "Connect as".

Now, after the upgrade, after the command: afp://user : password@server, a "connect as" windows pops up and this is annoying.

Anyone knows how to skip this "connect as" window?

Thanks,
daniele

Its a problem, and you aren't the only one. https://forums.developer.apple.com/thread/51045

With the way our network is structured at work, unless this gets addressed, we will have to stick with El Capitain.
 
Thanks for replying.

I would like to create an Applescript that connects to a server and presses connect in the dialog box. In other words, I would like to automatically connect to a NAS share with an Applescript at night to perform a backup.

Thanks for helping,
daniele
 
Thanks for replying.
I would like to create an Applescript that connects to a server and presses connect in the dialog box. In other words, I would like to automatically connect to a NAS share with an Applescript at night to perform a backup.

Pretty simple with an AppleScript. Something like this:

Code:
mount volume "afp://username:password@myserver/path/"

You could schedule it using a Calendar Alarm from Automator.

Hope that helps!
 
Thanks for replying.

But it the Connect windows pops up asking for confirmation. This is what I want to automate
 
Thanks for replying.

But it the Connect windows pops up asking for confirmation. This is what I want to automate


Really? Even with the AppleScript?
[doublepost=1474642421][/doublepost]
Really? Even with the AppleScript?


...if so, you could try it from the Terminal like this:

Code:
theMountPath=/Volumes/tmp; mkdir -p "$theMountPath"; mount_afp afp://username:password@server/share "$theMountPath"

Again, that could go in an Automator "Run Shell Script" action if you prefer.
 
Really? Even with the AppleScript?
[doublepost=1474642421][/doublepost]


...if so, you could try it from the Terminal like this:

Code:
theMountPath=/Volumes/tmp; mkdir -p "$theMountPath"; mount_afp afp://username:password@server/share "$theMountPath"

Again, that could go in an Automator "Run Shell Script" action if you prefer.

Does not work on Sierra. Been doing just as you suggested for years. Something has changed and background connections no longer work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.