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

Re: [MacPerl-Modules] Glue & Filemaker



First,  Chris and Jeff thanks for your help.

I find that to show all records you need:
$fm->show($fm->obj('records'=> gAll, database => 1));
to show specific records:
$fm->show($fm->obj('records'=>whose(cell=>'whatever'=>equals=>'1')));

however I cannot get the "find" command to work at all. As a test I set up a
find request manually and then executed a find request from Perl and then
Applescript:

Perl code:

#!perl -wl
use Mac::MoreFiles;
use Mac::Glue ':all';
use strict;

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

$fm->find();

this generated the following apple event which had no effect on the database
Process("FileMaker Pro").SendAE "FMPR,FIND"

The AppleScript

tell application "FileMaker Pro"
	find
end tell

Did cause FM to find only what I had selected and generated the following AE:
Process("FileMaker Pro").SendAE "FMPR,FIND,'----':'null'(), &subj:'null'()"

I have noticed simular behavior with "Open"
from perl the AE is:

Process("FileMaker Pro").SendAE "aevt,odoc,'----':obj {form:name,
want:type(file), seld:"Solomon:IBD:MasterList.fmp", from:'null'()}"

and from Applescript:

Process("FileMaker Pro").SendAE "aevt,odoc,'----':obj {form:name,
want:type(file), seld:"Solomon:IBD:MasterList.fmp", from:'null'()},
&inte:cans, &timo:3600"

In the open case FM opens the file but with Perl it also displays the "New
data base"
window that you must interact with to close.

Am I missing something or is this a case where the FM-Glue will have to be
"tuned up"
manually?

Thanks

Dave

------ ILLEGITIMIS NON CARBORUNDUM -------
-- DON'T LET THE Bastards GET YOU DOWN! --



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