If Everything by voidtools is installed, this provides an interface that lets you easily communicate with Everything from a script. You can start and stop Everything, query its status, send it arbitrary commands and query its database.

Create an EverythingInterface object via the DOpus.Create factory method.

Property Name Return Type Description

autorun

bool

Returns True if Everything is configured to auto-start (via the Miscellaneous / Advanced Options Preferences page).

indexed

int

Returns a value indicating which attributes Everything is configured to index. This is a bitmask made up of the following values:

2File sizes
4Folder sizes
8Created date
16Modified date
32Accessed date
64Attributes

isrunning

bool

Returns True if Everything is currently running.

roots

object:StringSet

Returns a set representing the drive roots that Everything has indexed.

version

string

Returns Everything's version number.

Method Name Arguments Return Type Description

Indexed

<string:path>

bool

Returns True if the specified path is indexed by Everything.

Query

<query>
<search_flags>
<request_flags>
<sort_type>
<max_results>
<offset>
<timeout>

Vector of EverythingResult

Sends the specified query string to Everything. Returns the results as a Vector of EverythingResult objects.

All arguments after the query string are optional, and represent flags provided by the Everything API.

search_flags should be a bitmask representing the EVERYTHING_IPC_xxx search flags, or a string containing one or more of the following characters. Defaults to 0 if not provided.

cmatch case (EVERYTHING_IPC_MATCHCASE)
wmatch whole words (EVERYTHING_IPC_MATCHWHOLEWORDS)
pmatch path (EVERYTHING_IPC_MATCHPATH)
rregex (EVERYTHING_IPC_REGEX)
amatch accents (EVERYTHING_IPC_MATCHACCENTS)

request_flags should be a bitmask representing the EVERYTHING_IPC_QUERY2_REQUEST_xxx request flags, or a string containing one or more of the following characters. Defaults to EVERYTHING_IPC_QUERY2_REQUEST_FULL_PATH_AND_NAME if not provided.

nname (EVERYTHING_IPC_QUERY2_REQUEST_NAME)
ppath (EVERYTHING_IPC_QUERY2_REQUEST_PATH)
ffull path and name (EVERYTHING_IPC_QUERY2_REQUEST_FULL_PATH_AND_NAME)
xextension (EVERYTHING_IPC_QUERY2_REQUEST_EXTENSION)
ssize (EVERYTHING_IPC_QUERY2_REQUEST_SIZE)
ccreated (EVERYTHING_IPC_QUERY2_REQUEST_DATE_CREATED)
mmodified (EVERYTHING_IPC_QUERY2_REQUEST_DATE_MODIFIED)
eaccessed (EVERYTHING_IPC_QUERY2_REQUEST_DATE_ACCESSED)
aattributes (EVERYTHING_IPC_QUERY2_REQUEST_ATTRIBUTES)
rrun count (EVERYTHING_IPC_QUERY2_REQUEST_RUN_COUNT)
Rdate run (EVERYTHING_IPC_QUERY2_REQUEST_DATE_RUN)
Mdate recently changed (EVERYTHING_IPC_QUERY2_REQUEST_DATE_RECENTLY_CHANGED)
Nhighlighted name (EVERYTHING_IPC_QUERY2_REQUEST_HIGHLIGHTED_NAME)
Phighlighted path (EVERYTHING_IPC_QUERY2_REQUEST_HIGHLIGHTED_PATH)
Fhighlighted full path and name (EVERYTHING_IPC_QUERY2_REQUEST_HIGHLIGHTED_FULL_PATH_AND_NAME)

sort_type should be one of the EVERYTHING_IPC_SORT_xxx constants (the numeric value). Defaults to 0 if not provided.

max_results lets you limit the number of results returned. Defaults to the everything_max_results advanced Preferences value if not provided.

offset specifies the result offset. In conjunction with max_results this lets you query large datasets without having to deal with all the results at once.

timeout specifies a timeout in milliseconds. Defaults to 1000 if not provided.

RunCountGet

<string:file>

int

Returns the run count for the specified file.

RunCountInc

<string:file>

int

Increments the run count for the specified file and returns the new count.

RunCountSet

<string:file>
<int:count>

bool

Sets the run count for the specified file to the value provided. Returns True on success.

SendCmd

<int:command>
[<int:data>]

int

Sends the specified command to Everything and returns its response. The commands are documented in the Everything API SDK (e.g. 401 equates to EVERYTHING_IPC_IS_DB_LOADED and returns 1 to indicate Everything's database is loaded).

Start

none

bool

Starts Everything if it's not already running and Opus has been configured to auto-start it.

Stop

none

bool

Stops Everything (tells it to quit).