Created
December 5, 2012 03:13
-
-
Save pmbuko/4211859 to your computer and use it in GitHub Desktop.
smb mount script example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
set uname to do shell script "/usr/bin/whoami" | |
set passwd to text returned of (display dialog "Please enter your password:" default answer "" with hidden answer) | |
mount volume "smb://" & uname & ":" & passwd & "@server/share" | |
on error theError | |
display dialog theError buttons "Darn" default button 1 with icon 2 | |
end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment