Re: list disks on Panther
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.