• 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
smb share naming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

smb share naming


  • Subject: smb share naming
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 30 Jun 2008 15:18:09 +0200

Hi,

I have small question about mounting smb e.g. Windows shares. I have to mount a bunch of identical Windows workstations with exact the same shares. Right now my script does look like this:

set user_name to ""
set Dialog_1 to display dialog "Please enter your user name" default answer "username"
set the user_name to the text returned of Dialog_1

set pass_word to ""
set Dialog_2 to display dialog "Please enter your password" default answer "" with hidden answer
set pass_word to the text returned of Dialog_2

tell application "Finder"
	try
		mount volume "smb://" & user_name & ":" & pass_word & "@server1/raw"
		mount volume "smb://" & user_name & ":" & pass_word & "@server1/pics"
		mount volume "smb://" & user_name & ":" & pass_word & "@server1/raw"
		mount volume "smb://" & user_name & ":" & pass_word & "@server1/pics"
		mount volume "smb://" & user_name & ":" & pass_word & "@server1/raw"
		mount volume "smb://" & user_name & ":" & pass_word & "@server1/pics"
	end try
end tell

My problem right now is that that all shares have the same name. I just posted the code for three servers but there are seven of them what makes it a bit confusing to browse between them.

My question is, is there a way the set specific names for each share to make it a bit easier to switch between them.

I hope there is somebody who can help me with this issue.

Mark


 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Oldest Message in Mail's Trash
  • Next by Date: One Folder Action stopping another
  • Previous by thread: Re: set "busy status" ?
  • Next by thread: One Folder Action stopping another
  • Index(es):
    • Date
    • Thread