• 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: Wayne Melrose <email@hidden>
  • Date: Sat, 01 Oct 2011 19:13:05 +0200

I'm still pretty sure that if you're unable mount a volume you can't suppress the error.

That's always the problem I've had.

Sent from my iPhone

On 1. okt. 2011, at 18:50, Thomas Fischer <email@hidden> wrote:

> 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
>
> Am 01.10.2011 um 17:46 schrieb DaveC:
>
>> 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
>
> _______________________________________________
> 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
 _______________________________________________
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

References: 
 >How to not display errors? (From: DaveC <email@hidden>)
 >Re: How to not display errors? (From: Thomas Fischer <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