smb share naming
smb share naming
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