• 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
where and whose (what and why?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

where and whose (what and why?)


  • Subject: where and whose (what and why?)
  • From: Nathan Day <email@hidden>
  • Date: Mon, 26 May 2003 13:37:54 +0930

I have never been able to work out the where or whose filter, they sometimes work and sometimes don't, can someone explain to me why this is, for example the follow script work

tell application "Finder"
every item of folder (choose folder) where its name begins with "a"
end tell

but none of the following do

set theText to "aa bb cc dd ab bc cd de"
every word of theText whose first character is "a"

set theText to {"aa", "bb", "cc", "dd", "ab", "bc", "cd", "de"}
every item of theText whose first character is "a"

set theText to "aa bb cc dd ab bc cd de"
every word of theText where it begins with "a"

set theText to "aa bb cc dd ab bc cd de"
every word of theText where it is in {"ab", "aa"}

tell application "Finder"
set theList to every item of folder (choose folder)
every item of theList where its name begins with "a"
end tell

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: where and whose (what and why?)
      • From: Emmanuel <email@hidden>
    • Re: where and whose (what and why?)
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Scripting Palm Desktop export?
  • Next by Date: Re: where and whose (what and why?)
  • Previous by thread: Re: Scripting Palm Desktop export?
  • Next by thread: Re: where and whose (what and why?)
  • Index(es):
    • Date
    • Thread