• 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: Selected Finder items returned by index?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selected Finder items returned by index?


  • Subject: Re: Selected Finder items returned by index?
  • From: Nigel Garvey <email@hidden>
  • Date: Mon, 15 Oct 2001 21:22:10 +0100

Charles Arthur wrote on Mon, 15 Oct 2001 14:38:05 +0100:

>>set items_selected to (name of (sort selection by name))
>>
>>most result in:
>>--> Can't get name of {folder "Applications" of startup disk of application
>>"Finder" ...} - is this not a reference?
>
>No. As the curly brackets imply, it's a list. "Name of" only works on one
>Finder item at a time.

Well, more precisely, it only works on one Finder *reference* at a time.
In fact, it probably counts as an extension to the reference. If the
reference encompasses several items, all their names are returned:

name of every item of myFolder
name of every window
name of selection

In the case quoted above, 'sort' is not a reference, but a command.

NG


  • Prev by Date: Re: Date weirdness from Finder
  • Next by Date: Re: Selected Finder items returned by index?
  • Previous by thread: Re: Selected Finder items returned by index?
  • Next by thread: Re: Selected Finder items returned by index?
  • Index(es):
    • Date
    • Thread