At 13:28 +0200 2000.07.25, jean-michel meyer wrote: > count record of first database - - total records in file "count" is your event. >my $nbrofrecord = $fm->obj(count => records, database => 'my_nice_DB'); >print $nbrofrecord; > >And MacPerl return : > >AEObjDesc=HASH(0x47b8618) > >what is not i expect to get. Well, it is what _I_ expect, if that helps. obj() constructs an object specifier record and returns it, that's all. You need to use the count() method, not the obj() method. Now, the count() method is a little odd. I never noticed this kind of thing before, but apparently the AppleScript syntax is converted to the Apple events like this: my $num = $fm->count( $fm->obj(database => 'your_db'), class => 'record' ); There might be a way to make the syntax more natural, but I can't think of one now, and this is good once you know how to do it, so for now I guess it will have to do, unless someone else can think of a better way for Mac::Glue to parse it. I'll ponder it. -- Chris Nandor | pudge@pobox.com | http://pudge.net/ Andover.Net | chris.nandor@andover.net | http://slashcode.com/ # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org