Re: name of the system volume as a string (was Re: Newbie question)
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