Gui for login

Looking for a Gui program that will login into a server? If someone has one cool. Otherwise I am having an impossible time trying to pass variables. I have everything setup in xcode (nib files and all). Here’s the code that is supposed to work when i click on connect. I get network file permission error (-5000) I can log onto the server fine though.

on clicked theObject
tell window of theObject

              set thelogin to contents of text field "login"
	set thepass to contents of text field "password"
	
	mount volume "smb://thelogin:thepass@server/home"
end tell
end clicked

Looks like you’re passing the password as a string “thepass” instead of the variable thepass. Also, you aren’t defining a server, and are just leaving it as “server”. This should work.

set the_volume to “smb://” & thelogin & “:” & thepass & “@” & theserver & “/home” as string

mount volume the_volume