Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another way...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another way...
Authored by: robg on Oct 09, '02 08:50:21AM
Here's a script from Anonymous, who writes:
Tried the other applescript suggestions for mounting smb shares at login, and couldn't get applescript to play nice until I used the following slightly different command:
tell application "finder"
mount volume "smb://username:password@serverip/sharename"
end tell
Save as application w/ never show startup option selected. Place the resulting app into the login items. All smb shares are now auto-mounted and placed on the desktop at login.
I haven't tried this one, but thought it might be worth adding to the collection. -rob.

[ Reply to This | # ]
Another way...
Authored by: david_bates on Oct 09, '02 10:57:12PM

Here is how I did it for SMB:

I connected to the share, checked the box to save the login info in the Keychain, and created an alias to the server. Then I compiled the following script as an App and added it to the Login Items list.

This way it uses the login/password from my keychain.

However, I know very little about AppleScript so there are probably much better ways to accomplish this.

tell application "Finder"
open alias file "<path-to-alias>"
close window "<window-name>"
end tell



[ Reply to This | # ]
Another way...
Authored by: Gonzonia on May 16, '03 08:48:51AM

That script seems to work well, except that the sharename can't have spaces.



[ Reply to This | # ]