where and whose (what and why?)
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.