Re: repeat issue in Filemaker Pro 8
Re: repeat issue in Filemaker Pro 8
- Subject: Re: repeat issue in Filemaker Pro 8
- From: Bruce Robertson <email@hidden>
- Date: Wed, 12 Apr 2006 06:40:07 -0700
Title: Re: repeat issue in Filemaker Pro 8
Hello everyone!
I have a script that auto-generates an InDesign CS document with information from all records of a found set of Filemaker Pro 8. It works just fine, except for when the repeat loop comes into play.
Here's the pertinent portions of the script:
tell application "FileMaker Pro"
tell layout "Imported" of window 1 of document ¬
"Document_Name"
set vendors to cell "Vendor_Value_List"
set vendor_list to every paragraph of vendors
repeat with v from 1 to (length of vendor_list)
show (records whose cell "Vendor" is item v of vendor_list)
--All the instructions for building and saving the InDesign document occur here...I won't bore you with it!
end repeat
end tell
end tell
The first time through, all works well. The second time through, it stops on the "show (records whose cell "Vendor" is item v of vendor_list)" line and displays the error: "FileMaker Pro got an error: Event not handled."
So for some reason, it can't do the new search on the second item of the list.
When I've tested this script using manual numbers to do the finds (versus using the repeat variable), all works well also.
Does anyone have any suggestions? If you think that the complete script would be more beneficial to see, I can send that as well.
I think that you are getting the problem result because the script is doing what in 6 was searching across the document (found set) vs across the entire database.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden