Re: repeat problem
Re: repeat problem
- Subject: Re: repeat problem
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 02 Oct 2001 18:45:37 -0700
On 10/2/01 2:05 PM, "Chris Nebel" <email@hidden> wrote:
>
Bill Cheeseman wrote:
>
>
> on 10/2/01 1:55 PM, Christopher Nebel at email@hidden wrote:
>
>
>
>> -- if using Mac OS X 10.1, you can say 'whose file type is in
>
>> {"EPSF", "TIFF"}'
>
>
>
> This works in Finder 9.2.1 in Mac OS 9.2.1, too. (And I should think it has
>
> been working in older versions, too.) Why do you single it out as a 10.1
>
> technique?
>
>
Because I didn't know it worked in 9.2.1, and was too lazy to try it before
>
sending the message. I picked up the "file type is in" technique from our
>
esteemed marketing manager Sal, who implied that it didn't work in prior
>
Finders. Trying it now, I see it works as far back as 8.1. My mistake.
>
>
Fortunately, there's a coercion of string-to-single-item-list operating. By
rights, you need the same class (list here) on both sides of the "is in"
(i.e. obverse of "contains") operator, which won't work with the whose
clause.
tell application "Finder"
get every file of desktop whose {file type} is in {"EPSF", "TIFF"}
end tell
--> Finder got an error: Can't make some data into the expected type.
get every file of desktop whose file type is in {"EPSF", "TIFF"}
works fine.
--
Paul Berkowitz