|
|||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
#1 |
|
Prospect
Join Date: Dec 2012
Location: Louisville, KY
Posts: 13
|
Script to Mount Network Shares at Login without opening Finder Windows
Ok, I am able to mount the shares at login using the Login Items, however a finder window opens for each share, which, is annoying to have to go in and close each window (there are 7 in total). I would like to be able to mount the shares at login without having the Finder windows come up.
I have tried using the following in the Automator as a Shell Script, but it will not run, and is only showing the basic MAN Mount text in the error box. What is posted below it a generic version, user/pass and path changed. Code:
mount volume "afp://John:doe@DiskStation._afpovertcp._tcp.local/Main" |
|
|
|
|
|
#2 |
|
Major Leaguer
Join Date: Apr 2005
Posts: 477
|
First, your command is an applescript command, not a shell script command. That's why you're getting the error. So sticking with applescript, use this command and it won't open a folder...
Code:
mount volume "Main" on server "DiskStation._afpovertcp._tcp.local" as user name "John" with password "Doe" Code:
set mountedDisks to list disks if "Main" is not in mountedDisks then mount volume "Main" on server "DiskStation._afpovertcp._tcp.local" as user name "John" with password "Doe" end if Last edited by regulus6633; 12-06-2012 at 12:19 PM. |
|
|
|
|
|
#3 |
|
Prospect
Join Date: Dec 2012
Location: Louisville, KY
Posts: 13
|
Will give that a shot and let you know. Thanks for the code.
__________________
Thanks, Deckyon "Mac OSX. Because making UNIX user friendly is easier than fixing Windows." |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|