Re: [Pythonmac-SIG] How to fathom appscript

2006-12-18 Thread Nicholas Riley
On Mon, Dec 18, 2006 at 11:11:27PM +, Hamish Allan wrote: > itunes = app('iTunes') > x = itunes.sources.first.playlists[its.name.contains('MyName')] > > This code fetches any playlists containing the string 'MyName'. But I > want an exact match. Using 'equals' rather than 'contains' doesn't >

[Pythonmac-SIG] How to fathom appscript

2006-12-18 Thread Hamish Allan
Hi, I'm new to appscript (and relatively new to python) and I'm having trouble fathoming out how to determine what can be done with each type of object. For example, itunes = app('iTunes') x = itunes.sources.first.playlists[its.name.contains('MyName')] This code fetches any playlists containing