Re: whose class is folder...
Re: whose class is folder...
- Subject: Re: whose class is folder...
- From: Shane Stanley <email@hidden>
- Date: Sat, 07 Apr 2018 09:48:57 +1000
On 7 Apr 2018, at 7:49 am, Jean-Christophe Helary
<email@hidden> wrote:
>
> but if I do
>
> tell application "Finder"
> item of (selection as list) whose class is folder
> end tell
>
> I get a "can't get item of {...}" -1,728 error...
I suspect you mean "item 1 of..." or "items of...".
Whose clauses filter collections of elements. The selection property returns a
list, but is not itself a collection.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden