At 7:46 AM -0400 9/17/99, Chris Nandor wrote: >At 16:47 -0400 1999.09.16, Dave Johnson wrote: >>2) I want to do a simple find records. (Find in FM is far from simple). >>The Apple script example is: >> >>tell application "FileMaker Pro" >> delete every request >> create request with data {"1"} >> find >>end tell >> >>to delete the old find request I think I should use something like this: >>$fm-delete($fm->obj(name => requests => gAll)); >>But this gets me no where. Anyone have any ideas?? > >Why do you use "name" there? I'd think $fm->obj(requests => gAll) would >work. Actually, in the latest version of Mac::Glue (0.56), >$fm->obj('requests') should work. > > >>and while you are at it how do you form the new find request??? >>#$fm-create($fm->obj(request, with data ????)); >>#$fm->find(); > >Hm. I'd guess: > > $fm->create(request => with_data => 1); > $fm->find; A couple of things. One, I'm not sure if Chris read the pod for a FileMaker glue or not. The 'with data' is an optional clause, so I think it would have to be $fm->create('request', with_data=>'1'); and it might have to be $fm->create($fm->obj('request'),with_data => '1'); Second, you're probably trying to follow an example script given to you by FileMaker. The one you're looking at is actually a bad way to do what I think you want. What I think you want is to show every record that contains "1" in some field or another. If you script FileMaker using the find command, it ends up giving you weird behavior. When you do the find, you enter a specific mode that has "pause" and "continue" buttons (or some such) show up in the side bar. These can only sort of be ignored. They queue up, so if you do a bunch of such scripts, you have to click a bunch of buttons to make them go away. They can also cause minor difficulties. You'll probably want to use a show command, somewhat like $fm->show($fm-obj('records'=>whose(cell=>'whatever'=>equals=>'1')); Strider Corinth had some discussions about using Glue with FileMaker last month, around the 26th or so. It might help you to review those in the archives. -Jeff Lowrey ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org