Automate mapping drives to Mac

Posted on 2011-04-22
Last Modified: 2012-05-11
I have a user that takes her macbook home with her at night and when she comes into the office at work she needs mapped drives. I've entered logon scripts but she doesn't reboot when she comes in she just plugs in and gets to work. Is there a way to have a script run or somehow map drives automatically when she hops on the network? Somehow use the work network as the variable to trigger the event? Or just everytime she opens the lid it runs the script? Or gets an IP address?

Thanks in advance.
Question by:MLAN_Consulting
    LVL 53

    Expert Comment

    Just put aliases to her network drives on the desktop or in her dock. Then the drives will open whenever she double clicks the alias.
    LVL 28

    Accepted Solution

    You can also write an apple script like the following and either access it from the desktop or have it in the login items. Issue with having it in the login items is when she logs in and isn't on the LAN.
    tell application "Finder"
    	delay 0.3
    		mount volume "smb://Servername1/applications"
    		mount volume "smb://servername2/lis"
    		mount volume "smb://servername3/public"
    	end try
    	delay 0.3
    end tell

    Open in new window


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
    How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
    This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now