Re: What type is the finder selection?
Re: What type is the finder selection?
- Subject: Re: What type is the finder selection?
- From: Doug McNutt <email@hidden>
- Date: Tue, 13 Aug 2002 11:02:03 -0600
At 22:29 +1200 8/13/02, Andy Wylie wrote:
>
Sooner or later you're going to discover folders is folders and disks and
>
trash...
As it always was in my youth. A directory ought to be a subset of class file!
Following your lead. . .
tell application "Finder"
repeat with theTarget in folders of desktop
--repeat with theTarget in ((items of desktop) whose class is folder)
get class of theTarget
get name of theTarget
get kind of theTarget
end repeat
end tell
The commented repeat line yields a count of zero items and does nothing but the "folders" line gives back all the disks and folders including mounted server disks. The get class returns an appropriate value - "disk, folder" - and the get kind even returns "shared disk".
Apparently "folders of desktop" has a special meaning which is totally unrelated to class folder. There must be a whole class of Applescript puns waiting to be verbalized. When is a folder not a folder? When it's in the desktop class.
Next thing is to see if desktop printers are folders in this dialect. Do I sound like a two year old learning to talk?
--
--> In Christianity, man can have only one wife. This is known as monotony. <--
_______________________________________________
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.