• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mounting a Volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting a Volume


  • Subject: Re: Mounting a Volume
  • From: Brett Conlon <email@hidden>
  • Date: Thu, 16 Nov 2006 15:42:04 +1000


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:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mounting a Volume
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Mounting volume issue
  • Next by Date: Re: Mounting a Volume
  • Previous by thread: Re: Mount Server Volume invisible
  • Next by thread: Re: Mounting a Volume
  • Index(es):
    • Date
    • Thread