Getting Computer Hard drive name

Hello all,

I’m trying to figure out the following:

I have a folder path
Fuzzy:Users:user1:Desktop:File.xls

However I would like to make this script dynamic so that if the Hard drive name changes it would reflect in the path.

ex:
Fuzzy > Big Bird

results:
Big Bird:Users:user1:Desktop:File.xls

Does anyone have examples of getting the hard drive name of the computer?

thanks.

How about this?

path to startup disk as Unicode text

That’ll work. thanks alot bruce.

You could try

tell application "System Events"
	set sdisk to path of startup disk
end tell


or

tell application "System Events"
	set dtop to path of desktop folder of user domain
end tell

Check out the library for “System Events” search using the word “Disk”

Speaking of the desktop, you might also be interested in something like this:

(path to desktop as Unicode text) & "File.xls"