Applescript to mount smb shares
Applescript to mount smb shares
- Subject: Applescript to mount smb shares
- From: Aaron Valenta <email@hidden>
- Date: Mon, 28 Apr 2003 11:23:04 -0400
- Organization: SCAD
Trying to write an applescript that prompts for username, password, and pc computer that the user is trying to get to. Running into difficulty while trying to do the mount command. The open location command yields an error of type -10814 and therefore doesn't mount.
Read somewhere that AppleScript 1.9 can use a mount "smb://" & ntusername & ":" & ntpassword & "@" & computername & "/" & ntusername &" but this would not compile correctly...and I have Applescript 2.0 beta thanks to the 10.2.5 update, though don't know if that is the problem or not.
Have tried a do shell script "/sbin/mount_smbfs" & ntusername & ":" & ntpassword & "@" & computername & "/" & ntusername & " /path/to/mount/at." This compiles fine but when run get an error that says no servername specified... Even tried hardcoding it to one specific server and still get this error. Not sure if it doesn't like the "@" symbol or what.
Anyone have any suggestions? Also, how does one encrypt the password so that it's not there in plain text as they type it in? Two separate questions but this is where I'm stuck.
Thanks in advance for any feedback.
_______________________________________________
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.