Skip to content

Instantly share code, notes, and snippets.

@pmbuko
Created December 5, 2012 03:13
Show Gist options
  • Save pmbuko/4211859 to your computer and use it in GitHub Desktop.
Save pmbuko/4211859 to your computer and use it in GitHub Desktop.
smb mount script example
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