Gnomo
Registered
Alright, so here's what's up.
I'm trying to write an AppleScript (since recording in 10.2 still does not work) that will mount a smb drive on a Win 2K Domain.
Normally I can access the drive using the connect to server dialog, but I would like to be able to do this on start up.
Searching macosx.com I found two scripts that looked promising, but they both don't work. The first said:
tell application "Finder"
try
open location "afp://username
assword@server ip/share"
end try
end tell
I tried to convert that for smb, by changing the protocol from afp to smb. Script Editor tells me that the syntax is correct, but it doesn't do anything when I click "run". I tried to run it via the terminal, but I guess I'm doing something wrong (tried ./scriptname) because it tells me that it cannot run the binary file.
The second script said:
mount volume "afp://server ip/share" as user name "username" with password "password"
I tried that (also changing it to smb), but because the username is my student ID number, it gives me a syntax error that "a number cannot follow """. "
Any ideas on how to make one of these two work?
I'm trying to write an AppleScript (since recording in 10.2 still does not work) that will mount a smb drive on a Win 2K Domain.
Normally I can access the drive using the connect to server dialog, but I would like to be able to do this on start up.
Searching macosx.com I found two scripts that looked promising, but they both don't work. The first said:
tell application "Finder"
try
open location "afp://username

end try
end tell
I tried to convert that for smb, by changing the protocol from afp to smb. Script Editor tells me that the syntax is correct, but it doesn't do anything when I click "run". I tried to run it via the terminal, but I guess I'm doing something wrong (tried ./scriptname) because it tells me that it cannot run the binary file.
The second script said:
mount volume "afp://server ip/share" as user name "username" with password "password"
I tried that (also changing it to smb), but because the username is my student ID number, it gives me a syntax error that "a number cannot follow """. "
Any ideas on how to make one of these two work?