Re: How to not display errors?
Re: How to not display errors?
- Subject: Re: How to not display errors?
- From: Alan Stirling <email@hidden>
- Date: Sat, 01 Oct 2011 17:52:18 +0100
Hi Dave
You seem to have missed the second 'On Error' line off your script.
It should go after the second 'Mount Volume', where it will suppress the error message that you see at present.
Best wishes - Alan Stirling
Alan Stirling Technology Ltd, 135 Lisson Grove, London NW1 6UP
020 7724 2456 (tel), 020 7724 8788 (fax), email@hidden, www.ast.fm
On 1 Oct 2011, at 16:46, DaveC <email@hidden> wrote:
> I am using a simple (don't they all start out this way? ;-) ) script to mount a volume. It tries to mount the volume, and if an error is returned, it mounts a different volume.
>
> The script works, but any error is reported to the users via a dialog and waits for input (to click the "OK" button).
>
> I would like to expand the script to eliminate the displayed message and requirement for input from the user.
>
> The script is:
>
> try
> mount volume [pathname1 here] as user name "user1" with password "pw1"
> on error
> try
> mount volume [pathname2 here] as user name "user2" with password "pw2"
> end try
> end try
>
> How might I modify this so that it doesn't display the error and doesn't wait for input?
>
> If it matters, I'm using Snow Leopard.
>
> Thanks,
> Dave
> _______________________________________________
> 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
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
_______________________________________________
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