Re: Mounting disk before continuing
Re: Mounting disk before continuing
- Subject: Re: Mounting disk before continuing
- From: Andy Wylie <email@hidden>
- Date: Wed, 23 May 2001 14:19:05 +1200
on 23/5/01 10:36 AM, Darrel Sandall at email@hidden wrote:
>
What I basically need to do is to have the script stop until the disk
>
is mounted successfully on the desktop (even if it takes me a couple
>
shots at getting the password typed correctly). I could put in a
>
timed wait command, but I would prefer that it just wait for the disk
>
to mount, so that if I did not type the password immediately, it
>
would just sit patiently and wait for me.
>
how about sending it into a loopy handler...
>
--------------------------------
>
on wait_for_foo()
>
if "foo" is in list disks then
>
return
>
else
>
wait_for_foo()
>
end if
>
end wait_for_foo
oops that overflows, this seems ok...
_____________________________
on wait_for_foo()
try
if "foo" is in (list disks) then
return
else
delay 1
return wait_for_foo()
end if
on error m number n
error {n, m}
return 128
end try
end wait_for_foo
_____________________________ Andy