duncs Posted November 30, 2007 Posted November 30, 2007 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!
Fitch Posted November 30, 2007 Posted November 30, 2007 Is "Search Script" in the same file as Search Field? Is the Auto-enter "Do not replace" checkbox UN-checked?
duncs Posted November 30, 2007 Author Posted November 30, 2007 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?
duncs Posted November 30, 2007 Author Posted November 30, 2007 Well I've solved the question mark problem, I had the script name entered incorrectly, but the script still isn't running....?
Fenton Posted November 30, 2007 Posted November 30, 2007 (edited) 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, 2007 by Guest
duncs Posted November 30, 2007 Author Posted November 30, 2007 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.
Recommended Posts
This topic is 6203 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now