• 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: Mount volume dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount volume dialog


  • Subject: Re: Mount volume dialog
  • From: Graff <email@hidden>
  • Date: Tue, 18 May 2004 10:47:54 -0400

As you said, just add the password to the mount command:
mount volume "smb://domain;@server/share" as user name theUser with password thePass
or I believe this works also:
mount volume "smb://domain;username:password@server/share"

I'm not sure if there is a return from this command which would indicate if the volume was properly mounted but if there is not then you can always just have the script look in /Volumes to see if the volume is mounted. If it's not there then you can take an appropriate action.

- Ken

On May 18, 2004, at 6:09 AM, <email@hidden> wrote:

I'm trying to create a script that mounts several shares, without the user
being prompted. The script uses the standard mount volume command:

mount volume "smb://domain;username@server/share"

This all works well when the user has a Kerberos ticket. Unfortunately, when
the use doesn't have a ticket, or when the ticket has expired, the user is
prompted for their password for each share the script tries to mount. Is
there a way of catching and preventing the password prompt dialog?

I already have a version of the script that just prompts for the password the
once, and then adds the password to the mount command, but I want to get away
from this if possible and just have a manual prompt as a controlled fall back
position.

Any insight would be welcome as I'm a bit new to AppleScript.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Mount volume dialog
      • From: Gnarlodious <email@hidden>
References: 
 >Mount volume dialog (From: <email@hidden>)

  • Prev by Date: Print to PDF
  • Next by Date: Re: Q: echo | sed -- Solved!
  • Previous by thread: Mount volume dialog
  • Next by thread: Re: Mount volume dialog
  • Index(es):
    • Date
    • Thread