Trapping errors on mount volume
Trapping errors on mount volume
- Subject: Trapping errors on mount volume
- From: Jean Létourneau <email@hidden>
- Date: Mon, 06 Dec 2004 05:18:06 -0500
Title: Trapping errors on mount volume
Hello MacScripters
I am currently converting a script from Mac OS 9.2.2 to 10.3.6. This scripts dispatches files to different afp and smb volumes. I am trying to mount volume “silently”, i.e. without finder dialogs on error, so the script can trap them and react accordingly.
I have tried :
try - on error - end construction
with timeout of – end timeout
shell script with mount_afp (in sh or bash)
stay open classic applet (that would only respond to mount volume command)
The finder always pop up a error dialog when a network volume is missing and the scripts is waiting for an OK click to that finder dialog. (Error message translated from French : Connection failed. The server is not responding. Please retry.) This was working like a charm in 9.2.2 ! The mount_afp shell command reacts exactly the same way, which makes me believe that the finder is in fact using this command to mount a volume.
Il wouldn’t like to use OS X equivalent of OkDoKey or some GUI scripting to click OK , unless I have no other choice …
Any solution or work around would be greatly appreciated.
Jean Letourneau
Le Journal de Montreal
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden