Christopher Green wrote:
> One of the things AS spoiled me with from early on is
> "whose clauses" (apparently also known as the by-test
> reference form). My question is, for those of you who
> reeeeally know other scripting/programming languages,
> what other languages have this funcionality as a basic
> feature??
'Whose clauses' are a feature of individual scriptable applications,
not of AppleScript itself, so any language with decent Apple event
support can take advantage of them, e.g. [1]:
#!/usr/bin/python
from appscript import *
print app('Finder').home.items[its.name.beginswith('d')].name()
#-> [u'Desktop', u'Documents', u'Downloads']
HTH
has
[1] To install Python appscript on Leopard, just run the following
command in Terminal:
easy_install appscript
--
http://appscript.sourceforge.nethttp://rb-appscript.rubyforge.org