Re: Weeding out items from list
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