How Do I Get the Index# of the Current Screen?

###How Do I Get the Index# of the Current Screen?

By "Current Screen", I mean the screen index# that the FrontMost Window is in.

I have reviewed the KM Wiki, and could not find the answer:

I need to use it in Actions like this:

###Current Action

###Desired Action

TIA for your help.

Nothing returns the screen index, but you can use screen index “Front” to get the information about the screen with the front window in it.

OK, thanks. That works great!

Three years later, and we still don't have a native KM Function to provide this data.
So, I wrote a Macro:

MACRO: Get Index to Front Screen [Sub-Macro]