• 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: Weeding out items from list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weeding out items from list


  • Subject: Re: Weeding out items from list
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 25 Nov 2005 15:50:28 -0700


On Nov 25, 2005, at 2:30 PM, Francois Houle wrote:

list disks
set listing to the result
 
 in AS to get the list of available mounted disks on the computer. That works fine... However I want to remove the local disks in that list to only get the network mounted volumes in the list. I can't find in the AS docs how to "clean up" my list once I have it.

This works:

set foo to list disks
set fubar to {}
tell application "System Events"
repeat with bar in foo
if local volume of disk bar is false then copy contents of bar to end of fubar
end repeat
end tell
fubar


Unfortunately, this doesn't work:

tell application "System Events"
set fubar to disk (list disks) whose local volume is false
end tell

It returns only the first remote volume.

-- Michelle

-- 
If you always reach your goals, you set the bar too low.  If you never reach your goals, you set the bar too high.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Weeding out items from list (From: "Francois Houle" <email@hidden>)

  • Prev by Date: Re: choose file of type
  • Next by Date: Re: choose file of type
  • Previous by thread: Weeding out items from list
  • Next by thread: RE: Weeding out items from list
  • Index(es):
    • Date
    • Thread