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: Helmut Fuchs <email@hidden>
- Date: Thu, 13 Dec 2001 15:02:28 +0100
At 7:30 Uhr -0600 13.12.2001, JollyRoger wrote:
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
To avoid the unnecessary coercion to a list you could also write:
text 1 thru -2 of (path to startup disk as text)
Have fun!
Helmut