• 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: Finding a volume name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Finding a volume name
  • Next by Date: Re: text to list
  • Previous by thread: Capturing video using AppleScript
  • Next by thread: Re: Finding a volume name
  • Index(es):
    • Date
    • Thread