Hi Tony!
My comments are inline with yours...
TonyBaggaDonuts said:
Are the words 'as user name' & 'with password' functions of the script
language?
These are functions of the "mount volume" command, which is found in Mac
OS X's Applescript "Standard Additions".
Another resource suggested this template:
+++++++++++++++++++++
tell application "Finder"
mount volume "smb://
workgroup;username
assword@serveraddress/sharename"
end tell
+++++++++++++++++++++
The "tell application..." section isn't necessary. The "mount volume"
command isn't a command of the Finder. However, the syntax of the mount
volume line is also acceptable.
so i combined the two into this subtituting my domain info here:
+++++++++++++++++++++
tell application "Finder"
mount volume "smb://server.domain.com/share"
end tell
+++++++++++++++++++++
Again, the syntax of your "mount volume" line is acceptable, but it's
not the same thing as the one above. In the first example, you've
incorporated the Windows domain name and in the second you've
incorporated the fully qualified domain name of the server. These are
two different things.
The Windows domain name is used to help you authenticate to the server.
You're essentially saying, "Hi! I'm so-and-so from this domain."
The fully qualified domain name is used to fully name the server you
want to connect to. With this you're saying, "I want to use this server
in that company."
This makes sense to me. is it wrong? I dont like putting passwords in
scripts, id rather manually enter it once and add it to my keychain,
that'll work too, right?
It's probably wiser to put save your passwords in the Keychain. This
means, however, that your script isn't portable to another system. You'd
have to create a Keychain on each system. Not a big deal, though.
NOW, what if i want to unmount... is the command 'unmount'?
If you want to unmount a volume, simply drag it to the Trash or
right-click (or Ctrl + click) and "Eject".
Hope this helps! bill