[Pythonmac-SIG] OSA Range references

bkenniso@att.net bkenniso@att.net
Tue, 20 Feb 2001 12:51:14 -0500 (EST)


Everyone,

First,I'm not a developer but a user, and I want to thank all of
you who make my use of Python on the Mac possbile. As I gain more
knowledge I hope to be able to contribute in some fashion.

I'm currently having a problem figuring out how to specify "ranges"
when using AppleEvents. I've created a FMPro module and am running
it interactively. I've been testing out as many aspects of this as
I can but have yet to figure out how to ask for a range of objects.

If I ask for a specific record there is no problem:

>>> db.get_data(record(1)) ['Bob','Jones']

but if I ask for a range of records I get

>>> db.get_data(record(Range(1,3)) 
[snip] 
aetools.Error: (-1703 'Wrong data type.', None)

I've searched the docs and the web trying to find an example of
how to specify ranges with no luck. Perhaps someone might be able
to give me a quick example or to point me where I should look to
see how aepack actually formats this.

Thanks for your time and thanks for making Python availble on the
Mac.

Brian Kennison