repeat issue in Filemaker Pro 8
repeat issue in Filemaker Pro 8
- Subject: repeat issue in Filemaker Pro 8
- From: "Mara Jade Skywalker" <email@hidden>
- Date: Mon, 10 Apr 2006 14:30:56 -0600
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.
Thanks for helping out this new scripter!
Tina
Filemaker Pro 8
InDesign CS
Mac OSX Panther on Dual 2GHz G5
_______________________________________________
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