[an error occurred while processing this directive]
$FrontEnd is a global variable that specifies to what front end object, if any, the kernel is currently connected.
$FrontEnd is either a FrontEndObject, or Null.
You can use Options and SetOptions on $FrontEnd to read and set global options for the front end.
See the Mathematica book: Section 2.10.4.
See also: $Notebooks.