• 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: Referring to the local hard drive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referring to the local hard drive


  • Subject: Re: Referring to the local hard drive
  • From: Richard 23 <email@hidden>
  • Date: Wed, 3 Jan 2001 21:19:59 -0800

>Message: 14
>Date: Wed, 03 Jan 2001 09:18:41 -0500
>From: "Stephen Gross" <email@hidden>
>Organization: Stuart Country Day School
>To: email@hidden
>Subject: Referring to the local hard drive
>
>Is there a way to refer to the local hard drive without specifying its
>name? I
>want to write an applescript that can be run on multiple machines, but the
>names
>of their hard drives differ.
>
>Thanks!
>--Steve

As far as I can tell mounted volumes are assigned ids starting at -1
and they go down from there.

tell application "Finder" to return id of disks
{-1, -2, -3}

R23


  • Prev by Date: Re: Referring to the local hard drive
  • Next by Date: Re: resetting record values to ""
  • Previous by thread: Re: Referring to the local hard drive
  • Next by thread: Re: Referring to the local hard drive
  • Index(es):
    • Date
    • Thread