• 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: repeat problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: repeat problem (From: Chris Nebel <email@hidden>)

  • Prev by Date: Re: Creating list references in handlers. Bad code or bug?
  • Next by Date: Re: Creating list references in handlers. Bad code or bug?
  • Previous by thread: Re: repeat problem
  • Next by thread: Display PICT in DD?
  • Index(es):
    • Date
    • Thread