[Pythonmac-SIG] Announce: OSATools

Michael J. Barber mjb@uma.pt
Wed, 4 Dec 2002 09:15:21 +0000


On Tuesday, December 3, 2002, at 10:44  PM, Bill Bedford wrote:

[my example using AE snipped]
> It seems to me that.....
>
> folderList = ['/Applications', '/Library']
> countList = []
> for f in dirFolder:
> 	countList.append(len(os.listdir(f)))
> return countList
>
> Is not only much more succinct, but is much easier to read.
>
That's very true. Not much of an example for how to construct an 
AppleScript-style tell block, though, is it? ;)

Divorced from a real problem, it's a bit difficult to find a good 
example that is interesting, succinct, and (perhaps most importantly) 
uses an application that everyone has. Any suggestions?

Michael