Re: remap network drive on a mac laptop

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Tony!

My comments are inline with yours...

In article <1141838139.423009.318390@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"TonyBaggaDonuts" <PureToneConsulting@xxxxxxxxx> wrote:

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:password@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
--
William M. Smith
(Microsoft Interop MVP - Mac/Windows)
.



Relevant Pages

  • [1/9] pohmelfs: documentation.
    ... This patch includes POHMELFS design and implementation description. ... Separate file includes mount options, ... * Fast and scalable multithreaded userspace server. ... +command (or set of commands, which is frequently used during data writing: ...
    (Linux-Kernel)
  • [1/9] pohmelfs: documentation.
    ... This patch includes POHMELFS design and implementation description. ... Separate file includes mount options, ... * Fast and scalable multithreaded userspace server. ... +command (or set of commands, which is frequently used during data writing: ...
    (Linux-Kernel)
  • Re: NFS root access
    ... No special PAM or other ... | I umount & mount after each change in the share command on the server, ...
    (comp.unix.solaris)
  • Re: Where are smbmounts mounted?
    ... Nautilus) where is the Windowa share mounted? ... could it be found for command line commands? ... Connect to server, not mount from server. ...
    (Fedora)
  • Re: Where are smbmounts mounted?
    ... Nautilus) where is the Windowa share mounted? ... could it be found for command line commands? ... Connect to server, not mount from server. ...
    (Fedora)