Hi
in 10.3 the following works fine:
try
mount volume “smb://10.0.1.2/D” as user name “bla” with password “1234”
on error
display dialog “could not connect to server 10.0.1.2”
end try
In Tiger:
if the ip exists, but the drive not (10.0.1.2 exists, but not a directory “D”) it works (“coul not connect…”)
but if the ip does not exist, applescript hangs up.
This only happens, if I’m using Airport to do the connection, with Ethernet all works fine and after a minute it calls the on error handler.
Has anyone an idea???
The different behavior between Airport and Ethernet has me a little stumped, but for what it’s worth, you’re not alone.
http://www.macwindows.com/#51205
If keychain clears/encryption issues don’t get you anywhere, you may have to wait for the next version… there are a lot of bugs submitted for Tiger/SMB.
An alternative approach might be to create a favorite for the server, and then open the alias. It uses a lot of the same stuff at the OS level as the mount utils, though, so it probably won’t help…
set thePath to (path to favorites folder from user domain as string) & "Alias to server file name"
tell application "Finder"
open alias thePath
activate
end tell
I have the same problems with afp connections: with ethernet it works fine, but with airport Applescript hangs up!