Re: [Pythonmac-SIG] Two appscript problems, plus a stupid question

2006-03-25 Thread has
Andrew Barnert wrote: >In my iTunes scripts, I do this by generating a big >filter: >[...] Come to think of it, you can simplify the OR test a bit, since AND() and OR() can take more than one argument: itunes = app('iTunes') dids = [66, 67, 68, 69, 70] idfilters = [its.database_ID == did for

Re: [Pythonmac-SIG] Two appscript problems, plus a stupid question

2006-03-25 Thread has
Andrew Barnert wrote: >If this list is the wrong place, I apologize; just let >me know and I'll ask in the right place. Otherwise: Here's fine. >First, whenever I try to get a date through appscript, >at least from iTunes, I get a "CommandError: long int >too large to convert to int". >Second, w

[Pythonmac-SIG] Two appscript problems, plus a stupid question

2006-03-24 Thread Andrew Barnert
If this list is the wrong place, I apologize; just let me know and I'll ask in the right place. Otherwise: Now that I can use appscript with Python 2.4 on my Intel box, I've been going back over some of my iTunes-controlling scripts, and I've run into two problems and one stupid question. First,