Re: Selected Finder items returned by 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