Re: List filtering
Re: List filtering
- Subject: Re: List filtering
- From: Alex Zavatone <email@hidden>
- Date: Thu, 02 Sep 2010 02:19:03 -0500
On Sep 2, 2010, at 1:31 AM, Joe wrote:
> At 10:51 PM -0500 9/1/10, Alex Zavatone wrote:
>> I've got a list of file aliases and I can do this just fine:
>>
>> set myList to (every text item of myFiles) as list
>>
>> But I'm trying to see if I can filter the text items as I get them like this:
>>
>> set myList to (every text item of myFiles whose text ends with "png") as list
>>
>> Of course that throws an error. I've been working at this for a few hours. Does anyone know if I can do this in one line?
>
> You could filter as you build an alias list.
>
> Something like this which has several filters:
>
> tell application "Finder" to set filList to (every file in the entire contents of thisItem whose file type is "osas" or creator type is in {"aplt", "dplt"} or name ends with "scpt") as alias list
>
Thanks man, that's exactly what I was trying to figure out how to do.
_______________________________________________
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