• 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: Filters with "entire contents of"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filters with "entire contents of"


  • Subject: Re: Filters with "entire contents of"
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 16 Oct 2004 14:07:54 -0700


On Oct 16, 2004, at 2:00 PM, Paul Berkowitz wrote:

Why don't the first three variations work? (using Script Editor 2.0,
AS 1.9.3, Panther 10.3.5)

Can a list have a label index?

But "every item of" is also a list.

Besides, that's how "whose" works.

'whose' clauses do not work with AppleScript lists (the longest standing
AppleScript feature request).

I know. That and better string manipulation.

 The example you gave that works:

    (every item of entire contents of f) whose label index is not 0

is probably not what you think it is. 'item' is not AppleScript's keyword
for a list member.

I know.

The construction is similar to the usual

every [element] of [an application object] whose [some property] = [some
value]



unlike all your other examples, but the application object (entire contents
of f) resolves to a list. Here, it's probably implemented as a reference
that stays "live" long enough to have a whose clause act on it. Interesting.

But this still doesn't answer the question of why it works with "every item of" but doesn't work if that is omitted.


set f to choose folder
tell application "Finder"
	(entire contents of f) = (every item of entire contents of f)
end tell

--> true

If they are identical why does the whose clause work with one and not the other?

-- Michelle

--
There's no place like 127.0.0.1
There's no place like 127.0.0.1
There's no place like 127.0.0.1

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Filters with "entire contents of"
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Filters with "entire contents of" (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Filters with "entire contents of"
  • Next by Date: Re: Filters with "entire contents of"
  • Previous by thread: Re: Filters with "entire contents of"
  • Next by thread: Re: Filters with "entire contents of"
  • Index(es):
    • Date
    • Thread