auto mounting ur netwprk shared volumes!

Discussion in 'OS X and OS X Apps' started by czar, Dec 19, 2006.

  1. czar

    czar Guest

    Many of us want to auto mount our shared network volumes, xp or mac.

    Write an apple script to do it.. Put the applescript in your dock, once you connect, click the applescript and bingo...

    Perform the following steps to create an AppleScript application that automatically mounts a network volume.

    1. Double-click the hard drive icon on the desktop.
    2. Double-click the Applications folder.
    3. Double-click the AppleScript folder.
    4. Double-click the Script Editor application.
    5. Type the following into the Script Editor window.

    tell application "Finder"
    open location "afp://user:password@server/share"
    open location "afp://user:password@server/share2"
    open location "afp://user:password@server/share3"
    open location "afp://user:password@server/share4"
    open location "afp://user:password@server/share5"
    open location "afp://user:password@server/share6"
    open location "afp://user:password@server/share7"
    open location "afp://user:password@server/share8"
    end tell

    Note: Replace user with the desired username, password with that user's password, server with the server IP address, and share with the name of the shared volume or if u use samba do this (smb://user:password@server/share) change "afp" w/ "smb".

    6. Click the File menu and choose Save As.
    7. Type the desired name of the script in the Save As field.
    8. Select the desired location for this file from the Where drop-down menu.
    9. Choose Application from the File Format drop-down menu.
    10. Ensure the Startup Screen setting does not have a check mark in front of it.
    11. Click the Save button. The application will appear in the location selected above.
    12. Close any open windows and close any programs to return to the desktop.
    13. Navigate to the location to which the AppleScript application was saved.
    14. Drag the Applescript to your Dock
    15. Click the Applescript in your Dock



Share This Page

  • About PhilMUG

    Since the mid-1990s, PhilMUG (formerly the Philippine Macintosh Users Group) has grown to become not just the Philippines’ but one of the world’s foremost Apple user groups. Our online community brings together thousands of members from the Philippines and around the world for the latest news and discussions covering all Apple products and related hardware and software. Anyone can join PhilMUG, from newbies to experts, subject to our membership rules and guidelines.
  • Like us on Facebook

  • Buy us a beer!

    The staff works very hard to make sure that PhilMUG is running 24/7. Care to buy us a beer or help out with our hosting fees? We'd really appreciate it!

    Donate to us!