problem with use of timeout property of Finder in applescript
problem with use of timeout property of Finder in applescript
- Subject: problem with use of timeout property of Finder in applescript
- From: "Amit Jain" <email@hidden>
- Date: Tue, 1 Aug 2006 18:09:14 +0530
Hi all,
I have used the following code and used the time out property of
finder in applescript:
with timeout of 10 seconds
try
tell application "Finder"
mount volume "smb://username:password@ipAddress/sharedFolderName"
end tell
on error
display dialog "could not connect to server"
end try
end timeout
it works successfully and if in 10 secs does not find any server with
above ipAddress it displays the above dialogue.
But the Finder still searches for the ipAddress and after some a long
duration(in minutes) it gives an error on console"mount_smbfs:
negotiate phase failed: syserr = Operation timed out".
Then I am not able to understand that what is the use of above
applescript if still the Finder continues its process in background?
Please help me out ASAP. If any other solution to reduce the timeout
please let me know.
Thanks and Regards...
AmitJain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden