• 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: Mounting disk before continuing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Mounting disk before continuing (From: Darrel Sandall <email@hidden>)

  • Prev by Date: Re: Mounting disk before continuing
  • Next by Date: Re: Tell Finder Make New Folder wierdness!
  • Previous by thread: Re: Mounting disk before continuing
  • Next by thread: Re: Mounting disk before continuing
  • Index(es):
    • Date
    • Thread