Hi Martin,
It helps if you look up stuff that's suggested but I could see that you wouldn't know where to look for the osascript command. That's a UNIX utility that's used in the command line or in a shell script to embed AppleScript within it. As such, you can read about osascript with "man osascript". LittleSaint's commands work as is in the shell.
As an aside, LittleSaint's commands are excellent for mounting additional shares but aren't appropriate for mounting the share containing the home directory because the home directory is needed by the time the Finder is started in the user's new session. (I'm trying to set that up now) I'm having better luck with automounter but I can't seem to get it to authenticate with Kerberos. If anyone knows how to do that, I'm all ears.
One way to get the command run at the user's login is to create a LaunchAgent. I copied the /System/Library/LaunchDaemons/com.apple.KernelEventAgent.plist into the LaunchAgents directory and changed the filename and corresponding Label. The most important change is to change the ProgramArguments array to launch a shell script that mounts the extra shares. You can read about the syntax of this file in "man launchd.plist".
I should note also that I tried this to mount the share containing the home directory. Again, it doesn't run early enough in the login process to have a home directory ready when it was needed but it should work well for subsequent shares. Alternatively, you could put the AppleScript part of LittleSaint's osascript commands into an AppleScript, save it as an application and run it as a Login Item of the user.
--
Gary
~~~~
In the force if Yoda's so strong, construct a sentence
with words in the proper order then why can't he?