Can I connect to share at login?

Joined
Dec 15, 2006
Messages
2
Reaction score
0
Hi,

I'm on a 24" iMac running OS X 10.4.8. There is a Buffalo Linkstation NAS on my network. Currently, the first thing I do when I login is go to the Finder to connect to a share on the Linkstation. This is so some cron jobs I run can access files on the NAS. I'd like to know if there is a way to have the share on the Linkstation connected automatically on login.

Thanks for your help

Mike
 
Joined
Oct 8, 2006
Messages
202
Reaction score
3
I would try doing an AppleScript and then have that run on log-in.

I assume this linkstation dealy uses SMB (Windows file sharing protocol) for its file sharing, so this script should work (replace the brackets with your info):

tell application "Finder"
try
mount volume "SMB://<WORKGROUP>;<USER>:<PWD>@<SERVER>/<SHARE>"
end try
end tell

Save that as an application from applescript studio, then make it run on login through the user preferences panel.
 
Joined
Dec 15, 2006
Messages
2
Reaction score
0
Thanks. It worked like a charm.

In case some else with the same issue stumbles upon this, I'll note that I only needed the business line of the script to be:

mount volume "smb://<SERVER>/<SHARE>"

I assume this is because the login information was stored in my keychain.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top