Re: Unwanted dialog if mounting fails
Re: Unwanted dialog if mounting fails
- Subject: Re: Unwanted dialog if mounting fails
- From: Jim Skibbie <email@hidden>
- Date: Tue, 28 Jul 2009 09:08:42 -0500
- Thread-topic: Unwanted dialog if mounting fails
Title: Re: Unwanted dialog if mounting fails
Chris, is there a way to circumvent the “mounting facility” so that the OS does not throw up this dialog when the mounted volume is not available? This functionality must be something introduced in Leopard because I have scripts running in earlier OS versions on headless machines where you can capture the mount error and handle it however you choose from within Applescript. With this dialog box coming up, is there a way for a headless machine to get around this and not have the script timeout?
For instance, an on idle script that need to mount a specific server volume to drop a file into it. If the server is down for some reason, you can have the script idle for some set time and then attempt to remount it in 5 minutes. Otherwise, the script could time out. Is that the only error you can capture is the time out?
Thanks.
Jim
On Jul 27, 2009, at 3:41 AM, Bert Groeneveld wrote:
The volume "Macintox HD" does not exist. Despite the fact that I put my code in a try block I still get a dialog that tells me that mounting failed. This seems strange to me since the code is inside a try block. Can I work around this dialog? I mean, I just want to execute the code in the error block, without any popus that require user-interaction.
Unfortunately, this dialog is displayed by the underlying volume mounting facility and is out of the hands of AppleScript. It is displayed before the "mount volume" command even returns an error to AppleScript, where your error handler lives.
--
Chris Page
_______________________________________________
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