Re: Weeding out items from list
Re: Weeding out items from list
- Subject: Re: Weeding out items from list
- From: kai <email@hidden>
- Date: Sat, 26 Nov 2005 23:46:28 +0000
On 26 Nov 2005, at 12:38, Nigel Garvey wrote:
[snip]
"Is the media a local volume?" (Ouch!)
[snip]
Here's some more good reading: :-)
tell application "Finder"
tell (every disk whose local volume is false and name is not
"Network")
if (it exists) then
set listing to its name
else
set listing to {}
end if
end tell
end tell
And pushing the "Ouch!" factor to its limit, anyone for a thoroughly
perverse, one-line version of that? ;-)
tell application "Finder" to tell (a reference to (disks whose local
volume is false and name is not "Network")) to set listing to name of
item (((exists) as integer) + 1) of {{name:{}}, it}
---
kai
_______________________________________________
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