[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Filemaker Pro DB



At 23:19 +0200 2000.09.12, Axel Rose wrote:
>OTH you may have to struggle with AppleScript or AppleEvents.
>It's hard, I know, but is supported and quite fast.

Well, Mac::Glue isn't hard (for the most part).  Mac::Glue is distributed
with an example of how to read from a FileMaker database.  Here's a quick
snippet:

  my $finder = new Mac::Glue 'Finder';
  my $fm = new Mac::Glue 'FileMaker Pro';

  $finder->open($finder->obj(file => $file));
  my $db = $fm->obj(database => 1);
  my @fields = $fm->get( $fm->prop(name => fields => $db) );
  my @data = $fm->get( $fm->obj(records => $db) );
  for my $record (@data) {
     print join(", ", @$record), "\n";
  }

It probably wouldn't be too hard to create the database and add to it
either, but I have never done it.

I am about ready to release Mac::Glue 1.0.0, but the only code difference
of note is that it has error handler support, so the current version 0.58
works just fine.  Just install cpan-mac 0.40 (although cpan-mac 0.41 is on
the way ...) and then install Mac::Glue, reading the README carefully.

    http://sourceforge.net/projects/mac-glue/

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org