Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting a Volume




Yup, that worked a treat. Many thanks, Rick!

Luckily, in this case I wanted to supply the login/password because everyone uses the same one to get to this server, but, out of interest's sake if I wanted each person to enter their own login/password, would I have to provide dialog prompts for both values and replace them in the "mount volume" command? Or is there another way to be prompted with the usual login window as you do in the finder, like what happens in another of my scripts when it mounts our Mac Server?

Cheers,

Coj




"Pepper, Rick G" <email@hidden>

16/11/06 03:51 AM

To
<email@hidden>
cc
Subject
Mounting a Volume






tell application "Finder"
       if not (exists disk "Input_Files") then
               activate
               mount volume "afp://162.49.130.29/Input_Files"
       end if
end tell

You have to include user name and password:

Mount volume "afp://username:password@server_name_or_ip/Volume_name"

Rick Pepper
Senior PrePress Analyst
Carlson Craft Business Solutions
1625 Roe Crest Drive, North Mankato, MN 56003
Phone: 507-304-6443



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.