Re: How to not display errors?
Re: How to not display errors?
- Subject: Re: How to not display errors?
- From: Thomas Fischer <email@hidden>
- Date: Sat, 01 Oct 2011 19:46:47 +0200
Hi Dave,
Am 01.10.2011 um 19:21 schrieb DaveC:
>> Hi Dave,
>>
>> that's strange. I don't get any error messages with your script (after replacing the placeholder appropriately). Are you sure that these error messages don't come from another bit of your script?
>> Furthermore, the scripts seems to work as expected in the Script Editor (Mac OS X 10.6.8).
>>
>> Best
>> Thomas
>
> You are putting in a bogus server name? You have to try the script with the name of an unavailable server in order to see how the errors are handled.
this is what I did.
To be precise, I set
try
mount volume "smb://134.76.176.203/" as user name "mueller" with password "meinKW"
on error
try
mount volume "smb://ssgfi1.sub.uni-goettingen.de/" as user name "schmidt" with password "seinKW"
end try
end try
with the results
tell application "AppleScript Editor"
mount volume "smb://134.76.176.203/" as user name "mueller" with password "meinKW"
--> error number -36
mount volume "smb://ssgfi1.sub.uni-goettingen.de/" as user name "schmidt" with password "seinKW"
--> error number -36
end tell
It took fairly long, since it has to run into a time-out.
I tried other versions with different settings, some created a mount, others failed, but there was never a an error message.
Without the try … end try I get two error messages, one from the system and the other as a pane inside of Script Editor.
I had the impression though that the password didn't always work as expected.
Best
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden