• 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: list disks on Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list disks on Panther


  • Subject: Re: list disks on Panther
  • From: "Thomas C." <email@hidden>
  • Date: Wed, 10 Dec 2003 18:50:12 +0100

Bad news again. Thanks for giving me that information, however I really don't like using a repeat loop for that.
I really wonder why this command has changed since Jaguar...

Thanks Thomas

Nigel Smith wrote :

No, 'fraid not. "Network" comes up after local partitions, but before
mounted network shares on my 10.3 machine. The disks *appear* to be listed
in the order in which they are mounted, so after mounting two network shares
followed by an external FW drive I get:
{"MacHD", "Swap_Partition", "Network", "share1", "share2", "FW_Disk"}

So maybe:
set diskList to {}
repeat with eachDisk in (list disks)
set tmp to contents of eachDisk
if tmp is not "Network" then copy tmp to end of diskList
end repeat
return diskList

And before you use:
do shell script "ls /Volumes"
...note that command does not list all mounted volumes -- those accessed by
"browsing" Network/Local will not be included.

HTH,

Nigel
_______________________________________________
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.

  • Follow-Ups:
    • Re: list disks on Panther
      • From: Nigel Smith <email@hidden>
References: 
 >Re: list disks on Panther (From: Nigel Smith <email@hidden>)

  • Prev by Date: Re: Bring FileMaker window to front
  • Next by Date: Folder question
  • Previous by thread: Re: list disks on Panther
  • Next by thread: Re: list disks on Panther
  • Index(es):
    • Date
    • Thread