• 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: Looking for a disk in disks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for a disk in disks


  • Subject: Re: Looking for a disk in disks
  • From: Bill White <email@hidden>
  • Date: Sun, 28 Oct 2001 16:00:05 -0500

> How can I test if a certain volume is mounted on the mac ?
>
> I am trying to use
>
> Tell app "Finder" to set theDisks to the disks
> If "home" is in theDisks then beep
>
> Only it never does, how can use this

You're almost there! Try this:

tell application "Finder" to set theDisks to list disks
if "home" is in theDisks then beep

Hope this helps.

Bill


References: 
 >Looking for a disk in disks (From: Mark Bjærgager <email@hidden>)

  • Prev by Date: Looking for a disk in disks
  • Next by Date: [ANN] Report on AS 1.7 updated
  • Previous by thread: Looking for a disk in disks
  • Next by thread: Re: Looking for a disk in disks
  • Index(es):
    • Date
    • Thread