The following worked a little bit better for me -- though I didn't end up seeing onBeginSearch getting invoked.
What I used:
Uncommenting the last line shows that some bits seem to work for me.
Ah, I also have a vague memory that czb had a Python plugin -- may be asking him might shed some light on the matter. I think a thread w/ the plugin mentioned in it says something about it being discontinued, but he still seems to have a page for it:
http://czb.dcmembers.com/TodoTXT.html
What I used:
- Python 2.6.x (ActiveState)
- FScript.dll version 1.13.0.0 (at least that's what I saw via the properties dialog box in explorer)
- FARR 2.48.0.1
- Windows XP
Uncommenting the last line shows that some bits seem to work for me.
Ah, I also have a vague memory that czb had a Python plugin -- may be asking him might shed some light on the matter. I think a thread w/ the plugin mentioned in it says something about it being discontinued, but he still seems to have a page for it:
http://czb.dcmembers.com/TodoTXT.html
Code: (python)
displayname = "TESTPython"
versionstring = "0.0.1"
releasedatestring = "March 2nd, 2009"
author = "Author"
updateurl = ""
homepageurl = ""
shortdescription = "TESTPython"
longdescription = "Python Test Plugin, you know?"
readmestring = ""
iconfilename = "FScript.ico"
aliasstr = "ttt"
regexstr = ""
regexfilterstr = ""
keywordstr = ""
scorestr = "300"
# type
UNKNOWN = 0
FILE = 1
FOLDER = 2
ALIAS = 3
URL = 4
PLUGIN = 5
CLIP = 5
# Postprocessing
IMMEDIATE_DISPLAY = 0
ADDSCORE = 1
MATCH_AGAINST_SEARCH = 2
# search state constants
STOPPED = 0
SEARCHING = 1
def onSearchBegin(querykey, explicit, queryraw, querynokeyword):
FARR.setStrValue("DisplayAlertMessage", "woohoo")
FARR.setState(querykey, SEARCHING) #start search
# return result to farr (queryID, title, path, icon, entrytype=FILE, resultpostprocessing=2, score=300)
FARR.emitResult(querykey, "python TITLE", "python PATH", iconfilename, ALIAS, IMMEDIATE_DISPLAY, 5000)
FARR.setState(querykey, STOPPED) #stopped search
# the following seems to work
#FARR.setStrValue("DisplayAlertMessage", "loaded python test plugin")







).






