November 30, 200718 yr Hello! I am trying to implement spotlight search http://www.secretweaponlabs.com/words/2005/09/24/spotlight-and-filemaker-redux-building-a-filemaker-search-engine/ but am getting stuck on the eventscript function. My Script seems to work fine if I run it independantly, however if I try to trigger it with an auto enter function: Case(not IsEmpty(Search Field); S4HU_EventScript( Get(FileName); "Search Script"; Search Field)) the search isn't performed. Has anyone got any advice? If I haven't provided sufficient info - just let me know!
November 30, 200718 yr Is "Search Script" in the same file as Search Field? Is the Auto-enter "Do not replace" checkbox UN-checked?
November 30, 200718 yr Author Yup they are both in the same file. The auto enter "do not replace" was checked, but changing that doesn't appear to have made a difference. I am getting a "?" entered into the search field on the layout after the script is running, not sure if that sheds any light?
November 30, 200718 yr Author Well I've solved the question mark problem, I had the script name entered incorrectly, but the script still isn't running....?
November 30, 200718 yr When I looked, the function was "missing". When I replaced it, it worked: Case ( not IsEmpty(Search Entry); S4HU_EventScript ( Get(FileName); "SearchScript"; "")) & Search Entry [P.S. I am using the Universal Binary (UB) version of the plug-in. If you're running on an Intel Mac, running FileMaker 8.5+, you must use the UB version. I see you aren't though.] Edited November 30, 200718 yr by Guest
November 30, 200718 yr Author Thanks Fenton, that has sorted out the problem! I suspect among other things, that the Universal Binary issue may have been part of the problem - how you can read into this stuff so well I'll never know! Thanks again.
Create an account or sign in to comment