Re: Finding a volume name
Re: Finding a volume name
- Subject: Re: Finding a volume name
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 2 Dec 2002 01:28:51 -0500
Date: Mon, 02 Dec 2002 13:56:51 +0800
Subject: Finding a volume name
From: Matthew Healey <email@hidden>
To: AppleScript <email@hidden>
Quick and probably easy question...
I need to retrieve the name of an AppleShare volume currently on the
desktop
(MacOS 9.2.2). I know the volume ends in "Files", but my script
doesn't know
the start of the name.
Is there any way that I can easily do a wildcard search for the
complete
volume name?
set theDisks to list disks
repeat with aDisk in theDisks
if (aDisk as text) ends with "Files" then
display dialog (aDisk as text)
end if
end repeat
This will run pretty fast. It might be possible to use the Finder to
get items of the desktop whose kind is disk and whose name ends with
"Files". I don't have time to switch to OS 9 to try it right now.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[12/02/02 1:27:46 AM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.