[Pythonmac-SIG] OSA Range references

Jack Jansen jack@oratrix.nl
Tue, 20 Feb 2001 22:01:44 +0100


Recently, bkenniso@att.net said:
> 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)

This could well be a result of my lack of understanding how these
Range() things work. (Not to mention the Test()s and such, which are
worse:-). Tom's workaround is of course an option, but I'd also be
interested in hearing from people who've used Range() objects
succesfully, or who can tell me what is wrong with the implementation.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm