Mount / Map a Network Drive ?

Discussion in 'Mac Basics and Help' started by .Joel, Oct 22, 2005.

  1. .Joel macrumors member

    Joined:
    May 10, 2005
    Location:
    Australia
    #1
    Hey all,

    I have a folder shared on a Win XP box at the other end of the house. It is like a public dump folder for our home network. I have the other XP boxes set so on boot they automatically Map to the network drive. However on the mac, each time I need to browse to the computer, click which folder I want to mount etc etc. Is there a way so on bootup the Mac automatically mounts the folder on the remote machine ? This would help as various applications use this folder for dumping of large large large psd files and huge cad files.

    Regards,

    .Joel
     
  2. matticus008 macrumors 68040

    matticus008

    Joined:
    Jan 16, 2005
    Location:
    Bay Area, CA
    #2
    You can use Applescript to do this (or use Automator, if you have Tiger). I don't have the script details on hand, but if you're not familiar with Applescript, Automator might be best. Just drag the appropriate actions from the Finder list into the workspace, enter the proper information (login name, password, share name) and save it as an application. You can add this to your login items (in User Accounts) and it'll run every time you log in, automatically connecting to the proper share.
     
  3. .Joel thread starter macrumors member

    Joined:
    May 10, 2005
    Location:
    Australia
    #3
    Awsome thanx, I'll give that a go now.

    Regards,

    .Joel
     
  4. matticus008 macrumors 68040

    matticus008

    Joined:
    Jan 16, 2005
    Location:
    Bay Area, CA
    #4
    Sure thing. And just for the sake of completion, I dug up the Applescript in my login items.

    tell application "Finder"
    try
    mount volume "smb://username: password@computername/sharename"
    delay 1
    end try
    end tell

    You can then get fancy and include conditions that popup a dialog on success or failure (display dialog "The Videos share on Firewire-2 mounted successfully, yo."), but above is the basic code you would need. (Ignore that space before 'password'--the forum thought it was a smiley).
     

Share This Page