• 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: name of the system volume as a string (was Re: Newbie question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name of the system volume as a string (was Re: Newbie question)


  • Subject: Re: name of the system volume as a string (was Re: Newbie question)
  • From: JollyRoger <email@hidden>
  • Date: Thu, 13 Dec 2001 07:30:57 -0600

On 12/12/2001 4:44 PM, "Jaime Rios" <email@hidden> wrote:

> How do I get the name of the system volume as a string? I am trying to get the
> volume name in Mac OS X and I am having difficulty finding the command. Thanks
> in advance!

For folders and volumes, the last character of the path is always a colon
(:)). The following script uses a well-known trick to cut off the last
character of the path.

-- begin script
characters 1 thru -2 of (the path to startup disk as text) as text
-- end script

HTH

JR


  • Prev by Date: Re: Sorry, please delete my stuff
  • Next by Date: Re: name of the system volume as a string (was Re: Newbie question)
  • Previous by thread: Re: R e: Coerce string to record or something like that?
  • Next by thread: Re: name of the system volume as a string (was Re: Newbie question)
  • Index(es):
    • Date
    • Thread