• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to not display errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to not display errors?
      • From: DaveC <email@hidden>
References: 
 >Re: How to not display errors? (From: DaveC <email@hidden>)

  • Prev by Date: Re: How to not display errors?
  • Next by Date: Re: How to not display errors?
  • Previous by thread: Re: How to not display errors?
  • Next by thread: Re: How to not display errors?
  • Index(es):
    • Date
    • Thread