• 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: What type is the finder selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: What type is the finder selection? (From: Andy Wylie <email@hidden>)

  • Prev by Date: Manipulating multiple files in arbitrary applications
  • Next by Date: Moving a file to an invisible folder?
  • Previous by thread: Re: What type is the finder selection?
  • Next by thread: Re: What type is the finder selection?
  • Index(es):
    • Date
    • Thread